2
0
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:
Faris Ansari 2019-12-03 13:50:24 +05:30
parent 43d2c93c13
commit c03b2d2147

View File

@ -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) {