mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: allow clearing of default fields
This commit is contained in:
@@ -285,7 +285,7 @@ export default defineComponent({
|
||||
delete this.errors[fieldname];
|
||||
|
||||
try {
|
||||
await this.doc?.set(fieldname, value);
|
||||
await this.doc?.set(fieldname, value ?? '');
|
||||
} catch (err) {
|
||||
if (!(err instanceof Error)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user