mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix(Base): Convert empty string to null
This commit is contained in:
parent
43d2c93c13
commit
c03b2d2147
@ -69,6 +69,9 @@ export default {
|
|||||||
},
|
},
|
||||||
triggerChange(value) {
|
triggerChange(value) {
|
||||||
value = this.parse(value);
|
value = this.parse(value);
|
||||||
|
if (value === '') {
|
||||||
|
value = null;
|
||||||
|
}
|
||||||
this.$emit('change', value);
|
this.$emit('change', value);
|
||||||
},
|
},
|
||||||
parse(value) {
|
parse(value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user