mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
bitbake: toastergui: fix angular error
Due to invalid identification of builds in the array update code (by id and status), we could end up with multiple entries sharing the same primary id, visible in the UI as an angular error. We modify the code to identify the builds exclusively by id. [YOCTO #7611] (Bitbake rev: 77d3f7c6cdc7f06807024896369f8f8ae94263fc) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ffd7cac8f6
commit
aad93dd3b7
@@ -341,7 +341,7 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc
|
||||
var toDelete = [];
|
||||
// step 1 - delete entries not found
|
||||
$scope.builds.forEach(function (elem) {
|
||||
if (-1 == _data.builds.findIndex(function (elemX) { return elemX.id == elem.id && elemX.status == elem.status; })) {
|
||||
if (-1 == _data.builds.findIndex(function (elemX) { return elemX.id == elem.id; })) {
|
||||
toDelete.push(elem);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user