From 74b11710cc84d23e9a51bf5e3a5c69eb3aba0f1e Mon Sep 17 00:00:00 2001 From: Pandiyan P Date: Sun, 5 Apr 2026 12:47:18 +0530 Subject: [PATCH] fix(manufacturing): handle null cur_dialog in BOM work order dialog (#54011) --- erpnext/manufacturing/doctype/bom/bom.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index 0ff10f8383a..32c543703bc 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -407,6 +407,7 @@ frappe.ui.form.on("BOM", { reqd: 1, default: 1, onchange: () => { + if (!cur_dialog) return; const { quantity, items: rm } = frm.doc; const variant_items_map = rm.reduce((acc, item) => { acc[item.item_code] = item.qty;