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

This commit is contained in:
Oliver 2024-02-02 14:58:11 +11:00 committed by GitHub
parent f97cdef9fc
commit c9c93bce39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [];
}
}
);