2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-10 09:18:48 +00:00

BuildOrder: Fix bug where test templates are requested for a non-trackable output (#6387) (#6388)

(cherry picked from commit c9c93bce39e8c58921c3212b7577a9357aa3236b)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2024-02-02 16:19:56 +11:00 committed by GitHub
parent c826b8231f
commit 75f507d4c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
@ -1133,6 +1133,9 @@ function loadBuildOutputTable(build_info, options={}) {
test_templates.push(item);
}
});
},
error: function() {
test_templates = [];
}
}
);