mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
BuildOrder: Fix bug where test templates are requested for a non-trackable output (#6387)
This commit is contained in:
parent
f97cdef9fc
commit
c9c93bce39
@ -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;
|
||||
@ -1138,6 +1138,9 @@ function loadBuildOutputTable(build_info, options={}) {
|
||||
test_templates.push(item);
|
||||
}
|
||||
});
|
||||
},
|
||||
error: function() {
|
||||
test_templates = [];
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user