fix(manufacturing): handle null cur_dialog in BOM work order dialog (backport #54011) (#54015)

This commit is contained in:
mergify[bot]
2026-04-05 07:19:23 +00:00
committed by GitHub
parent fddf9f381b
commit 01610b2fa7

View File

@@ -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;