From 47f52478e0fd255b8f09f906937a7e8766e31aa0 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 30 Mar 2023 11:07:46 +1100 Subject: [PATCH] Bug fix for BOM table (#4540) --- InvenTree/templates/js/translated/bom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/templates/js/translated/bom.js b/InvenTree/templates/js/translated/bom.js index 23e6a028c8..9cb0f71d3e 100644 --- a/InvenTree/templates/js/translated/bom.js +++ b/InvenTree/templates/js/translated/bom.js @@ -1247,14 +1247,14 @@ function loadBomTable(table, options={}) { var bDelt = makeDeleteButton('bom-delete-button', row.pk, '{% trans "Delete BOM Item" %}'); + let buttons = ''; if (!row.validated) { - html += bValidate; + buttons += bValidate; } else { - html += bValid; + buttons += bValid; } - var buttons = ''; buttons += bEdit; buttons += bSubs; buttons += bDelt;