From aad93dd3b78781e0a170345a5cf5ad59557e4170 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 28 May 2015 14:11:55 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/projectapp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/projectapp.js b/bitbake/lib/toaster/toastergui/static/js/projectapp.js index 44e244d302..b2e65c5bb5 100644 --- a/bitbake/lib/toaster/toastergui/static/js/projectapp.js +++ b/bitbake/lib/toaster/toastergui/static/js/projectapp.js @@ -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); } }); -- cgit v1.2.3-54-g00ecf