Fix getting series for related branches in Perfherder

Currently if a series does not exist on another branch (i.e. MacOSX 10.10
on b2g-inbound), Perfherder graphs won't be able to fetch the related
series. The fix for this is so simple, I'm just going to push it.
This commit is contained in:
William Lachance 2015-11-26 15:46:27 -05:00
Родитель ddc14a0cac
Коммит 3897dee31d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -893,7 +893,8 @@ perf.controller('TestChooserCtrl', function($scope, $modalInstance, $http,
var testList = _.sortBy(_.filter(series.seriesList,
{platform: relatedSeries.platform}), 'name');
var temp = _.findWhere(testList, {"name": relatedSeries.name});
$scope.testsToAdd.push(_.clone(temp));
if (temp !== undefined)
$scope.testsToAdd.push(_.clone(temp));
});
}).then(function () {
loadingExtraDataPromise.resolve($scope.testsToAdd.length);