fix: Return promise while reloading doc (#13219)

This commit is contained in:
Saqib 2021-05-31 10:42:50 +05:30 committed by GitHub
parent 5b3acf7fe8
commit e73efaec04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1069,7 +1069,7 @@ frappe.ui.form.Form = class FrappeForm {
if(!this.doc.__islocal) {
frappe.model.remove_from_locals(this.doctype, this.docname);
frappe.model.with_doc(this.doctype, this.docname, () => {
return frappe.model.with_doc(this.doctype, this.docname, () => {
this.refresh();
});
}