diff --git a/frappe/public/js/frappe/form/form.js b/frappe/public/js/frappe/form/form.js index ee7f141127..5410b1caec 100644 --- a/frappe/public/js/frappe/form/form.js +++ b/frappe/public/js/frappe/form/form.js @@ -671,7 +671,7 @@ frappe.ui.form.Form = class FrappeForm { } refresh_fields() { - this?.layout?.refresh(this.doc); + this.layout.refresh(this.doc); this.layout.primary_button = this.$wrapper.find(".btn-primary"); // cleanup activities after refresh @@ -1843,7 +1843,6 @@ frappe.ui.form.Form = class FrappeForm { email: p.email, }; }); - this.refresh_fields(); } trigger(event, doctype, docname) {