fix: wait until attach is cleared before saving
This commit is contained in:
parent
2d77379c13
commit
d30f9e1d78
1 changed files with 2 additions and 2 deletions
|
|
@ -37,8 +37,8 @@ frappe.ui.form.ControlAttach = class ControlAttach extends frappe.ui.form.Contro
|
|||
if(this.frm) {
|
||||
me.parse_validate_and_set_in_model(null);
|
||||
me.refresh();
|
||||
me.frm.attachments.remove_attachment_by_filename(me.value, function() {
|
||||
me.parse_validate_and_set_in_model(null);
|
||||
me.frm.attachments.remove_attachment_by_filename(me.value, async () => {
|
||||
await me.parse_validate_and_set_in_model(null);
|
||||
me.refresh();
|
||||
me.frm.doc.docstatus == 1 ? me.frm.save('Update') : me.frm.save();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue