summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-05-28 14:11:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-26 09:27:31 +0100
commitaad93dd3b78781e0a170345a5cf5ad59557e4170 (patch)
treea8c1a7658bf32965d7c84e8571f3550bf8f81fc3 /bitbake
parentffd7cac8f6a82ddf9c29795f90b8a0bc2096fd1a (diff)
downloadpoky-aad93dd3b78781e0a170345a5cf5ad59557e4170.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/projectapp.js2
1 files changed, 1 insertions, 1 deletions
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
341 var toDelete = []; 341 var toDelete = [];
342 // step 1 - delete entries not found 342 // step 1 - delete entries not found
343 $scope.builds.forEach(function (elem) { 343 $scope.builds.forEach(function (elem) {
344 if (-1 == _data.builds.findIndex(function (elemX) { return elemX.id == elem.id && elemX.status == elem.status; })) { 344 if (-1 == _data.builds.findIndex(function (elemX) { return elemX.id == elem.id; })) {
345 toDelete.push(elem); 345 toDelete.push(elem);
346 } 346 }
347 }); 347 });