LP1793196 Fix console error when none selected
[Evergreen.git] / Open-ILS / web / js / ui / default / staff / services / ui.js
index 59ff1c8..0fe9918 100644 (file)
@@ -982,7 +982,7 @@ function($uibModal , $interpolate , egCore) {
                     $scope.isopen = $scope.clickedopen || ($filter('filter')(
                         $scope.list,
                         $scope.selected
-                    ).length > 0 && $scope.selected.length > 0);
+                    ).length > 0 && $scope.selected && $scope.selected.length > 0);
                     if ($scope.clickedclosed) {
                         $scope.isopen = false;
                         $scope.clickedclosed = null;