diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-18 11:08:11 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-18 11:08:11 -0500 |
| commit | 9ed59ebfb8e7d5b3ef24a878dacb3c87a356d68c (patch) | |
| tree | 94f98f8e2decc77425b61dfbbd836bd3084b3bbf /www/js/MomentCtrl.js | |
| parent | fdfde916ee558f1dd61cf734f46f796b45c8dd4a (diff) | |
#570 handle parsing errors
Diffstat (limited to 'www/js/MomentCtrl.js')
| -rw-r--r-- | www/js/MomentCtrl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js index 7217f2b1..a52e5466 100644 --- a/www/js/MomentCtrl.js +++ b/www/js/MomentCtrl.js @@ -545,7 +545,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ var ld = NVRDataModel.getLogin(); $scope.gridSize = ld.momentGridSize; - excludeMonitors = JSON.parse(ld.momentMonitorFilter); + excludeMonitors = JSON.parse(ld.momentMonitorFilter || []); console.log ("RETRIEVED EXCLUDE="+JSON.stringify(excludeMonitors)); constructMask(); $scope.isSubMenu = false; |
