summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/MomentCtrl.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js
index 1cb080b3..64198c2d 100644
--- a/www/js/MomentCtrl.js
+++ b/www/js/MomentCtrl.js
@@ -774,7 +774,15 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
$scope.loadingStatus = $translate.instant('kLoading');
$scope.gridSize = ld.momentGridSize;
- excludeMonitors = JSON.parse(ld.momentMonitorFilter || []);
+ //console.log ("---------->Filter before "+ld.momentMonitorFilter);
+
+ try {
+ excludeMonitors = JSON.parse(ld.momentMonitorFilter);
+ }
+ catch (e) {
+ excludeMonitors = [];
+ }
+
console.log("RETRIEVED EXCLUDE=" + JSON.stringify(excludeMonitors));
constructMask();
$scope.isSubMenu = ld.enableMomentSubMenu;