From d4218a88ad0776d33ebeb0c221fffab432b22dbc Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Sat, 26 Aug 2023 12:54:13 +0530 Subject: [PATCH] chore: fixed bom creator linter issue (#36827) --- .../public/js/bom_configurator/bom_configurator.bundle.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/erpnext/public/js/bom_configurator/bom_configurator.bundle.js b/erpnext/public/js/bom_configurator/bom_configurator.bundle.js index b3b2e9f9b8..582b487966 100644 --- a/erpnext/public/js/bom_configurator/bom_configurator.bundle.js +++ b/erpnext/public/js/bom_configurator/bom_configurator.bundle.js @@ -383,7 +383,7 @@ class BOMConfigurator { frappe.views.trees["BOM Configurator"].tree.load_children(node); - while (true) { + while (node) { item_row = response.message.items.filter(item => item.name === node.data.name); if (item_row?.length) { @@ -402,12 +402,8 @@ class BOMConfigurator { ); $($(parent_dom).find(".fg-item-amt")[0]).html(total_amount); - - if (node.is_root) { - break; - } - node = node.parent_node; + } }