diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index c2b068b6e62..dc25a7bed57 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -750,7 +750,7 @@ erpnext.utils.update_child_items = function (opts) { }); } - new frappe.ui.Dialog({ + let dialog = new frappe.ui.Dialog({ title: __("Update Items"), size: "extra-large", fields: [ @@ -787,7 +787,9 @@ erpnext.utils.update_child_items = function (opts) { refresh_field("items"); }, primary_action_label: __("Update"), - }).show(); + }); + + dialog.show(); }; erpnext.utils.map_current_doc = function (opts) {