diff --git a/static/js/core-ui.js b/static/js/core-ui.js
index f7457ce0a..a1395bf1f 100644
--- a/static/js/core-ui.js
+++ b/static/js/core-ui.js
@@ -676,13 +676,17 @@ angular.module("core-ui", [])
$scope.toggleItems = function($event) {
$event.stopPropagation();
- $scope.controller.toggleItems();
+ if ($scope.controller) {
+ $scope.controller.toggleItems();
+ }
};
this.checkByFilter = function(filter) {
- $scope.controller.checkByFilter(function(item) {
- return filter({'item': item});
- });
+ if ($scope.controller) {
+ $scope.controller.checkByFilter(function(item) {
+ return filter({'item': item});
+ });
+ }
};
}
};