Fix small NPE

Fixes #1811
This commit is contained in:
Joseph Schorr 2016-09-08 14:32:49 -04:00
parent 42d4f4d851
commit a7ff08458d

View file

@ -676,13 +676,17 @@ angular.module("core-ui", [])
$scope.toggleItems = function($event) { $scope.toggleItems = function($event) {
$event.stopPropagation(); $event.stopPropagation();
if ($scope.controller) {
$scope.controller.toggleItems(); $scope.controller.toggleItems();
}
}; };
this.checkByFilter = function(filter) { this.checkByFilter = function(filter) {
if ($scope.controller) {
$scope.controller.checkByFilter(function(item) { $scope.controller.checkByFilter(function(item) {
return filter({'item': item}); return filter({'item': item});
}); });
}
}; };
} }
}; };