chore: fixed bom creator linter issue (#36827)
This commit is contained in:
parent
57538bd76a
commit
d4218a88ad
@ -383,7 +383,7 @@ class BOMConfigurator {
|
|||||||
|
|
||||||
frappe.views.trees["BOM Configurator"].tree.load_children(node);
|
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);
|
item_row = response.message.items.filter(item => item.name === node.data.name);
|
||||||
|
|
||||||
if (item_row?.length) {
|
if (item_row?.length) {
|
||||||
@ -402,12 +402,8 @@ class BOMConfigurator {
|
|||||||
);
|
);
|
||||||
|
|
||||||
$($(parent_dom).find(".fg-item-amt")[0]).html(total_amount);
|
$($(parent_dom).find(".fg-item-amt")[0]).html(total_amount);
|
||||||
|
|
||||||
if (node.is_root) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
node = node.parent_node;
|
node = node.parent_node;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user