Selaa lähdekoodia

fix: Return promise while reloading doc (#13219)

version-14
Saqib 4 vuotta sitten
committed by GitHub
vanhempi
commit
e73efaec04
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      frappe/public/js/frappe/form/form.js

+ 1
- 1
frappe/public/js/frappe/form/form.js Näytä tiedosto

@@ -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();
});
}


Ladataan…
Peruuta
Tallenna