зеркало из https://github.com/mozilla/treeherder.git
Bug 1203997 - Fix a console error when graphs view is first loaded
This commit is contained in:
Родитель
0b39058267
Коммит
6f78f1b172
|
@ -426,7 +426,8 @@ perf.controller('GraphsCtrl', [
|
|||
|
||||
$scope.timeRangeChanged = function() {
|
||||
// if new === old (i.e. page is first loaded), skip the event
|
||||
if ($scope.oldTimerange.value === $scope.myTimerange.value) {
|
||||
if (!$scope.oldTimerange ||
|
||||
$scope.oldTimerange.value === $scope.myTimerange.value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче