Skip to content

Commit

Permalink
BuildOrder: Fix bug where test templates are requested for a non-trac…
Browse files Browse the repository at this point in the history
…kable output (#6387) (#6388)

(cherry picked from commit c9c93bc)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
  • Loading branch information
github-actions[bot] and SchrodingersGat committed Feb 2, 2024
1 parent c826b82 commit 75f507d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion InvenTree/templates/js/translated/build.js
Expand Up @@ -1089,7 +1089,7 @@ function loadBuildOutputTable(build_info, options={}) {
var params = options.params || {};

// test templates for the part being assembled
let test_templates = null;
let test_templates = [];

// tracked line items for this build
let has_tracked_lines = false;
Expand Down Expand Up @@ -1133,6 +1133,9 @@ function loadBuildOutputTable(build_info, options={}) {
test_templates.push(item);
}
});
},
error: function() {
test_templates = [];
}
}
);
Expand Down

0 comments on commit 75f507d

Please sign in to comment.