Bug 1210009 - Fix bug in display of perf subtest comparison results

When original repository was not the same as the new repository, we wouldn't
show new results. This commit fixes that.
This commit is contained in:
William Lachance 2015-09-30 12:06:30 -04:00
Родитель db1c5b9bbf
Коммит 656a91e837
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -434,9 +434,9 @@ perf.controller('CompareSubtestResultsCtrl', [
return PhCompare.getResultsMap($scope.newProject.name, return PhCompare.getResultsMap($scope.newProject.name,
newSeriesData.seriesList, newSeriesData.seriesList,
timeRange, timeRange,
[$scope.newResultSetID]); [$scope.newResultSet.id]);
}).then(function(newSeriesMaps) { }).then(function(newSeriesMaps) {
var newSeriesMap = newSeriesMaps[$scope.newResultSetID]; var newSeriesMap = newSeriesMaps[$scope.newResultSet.id];
// There is a chance that we haven't received data for the given signature/resultSet yet // There is a chance that we haven't received data for the given signature/resultSet yet
if (newSeriesMap) { if (newSeriesMap) {
Object.keys(newSeriesMap).forEach(function(series) { Object.keys(newSeriesMap).forEach(function(series) {