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)
  • Loading branch information
SchrodingersGat committed Feb 2, 2024
1 parent f97cdef commit c9c93bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion InvenTree/templates/js/translated/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,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 @@ -1138,6 +1138,9 @@ function loadBuildOutputTable(build_info, options={}) {
test_templates.push(item);
}
});
},
error: function() {
test_templates = [];
}
}
);
Expand Down

0 comments on commit c9c93bc

Please sign in to comment.