From b062accfe26c3c1c3b847ddd88b15307f5b26bf6 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 12 Apr 2023 14:51:29 +1000 Subject: [PATCH] Small fix for build allocation table (#4604) --- InvenTree/templates/js/translated/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js index 9af3d66299..c9184e22fe 100644 --- a/InvenTree/templates/js/translated/build.js +++ b/InvenTree/templates/js/translated/build.js @@ -1921,7 +1921,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) { if (available_stock <= 0) { icons += `{% trans "No Stock Available" %}`; } else { - var extra = ''; + let extra = ''; if ((substitute_stock > 0) && (variant_stock > 0)) { extra = '{% trans "Includes variant and substitute stock" %}'; } else if (variant_stock > 0) { @@ -1931,7 +1931,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) { } if (extra) { - icons += makeInfoButton('fa-info-circle icon-blue', extra); + icons += makeIconBadge('fa-info-circle icon-blue', extra); } } }