summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-05-12 08:45:34 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-05-12 08:45:34 -0400
commit2cc5aa1508342e18a61f96d5abe67c2518966300 (patch)
treef52df6e98f6605e86c7c5927bb4ce84dc2ce592f /www
parent3783abd73ff6030f62f93d0f531ba684a640fb3e (diff)
make sure monitor array is not undefined
Diffstat (limited to 'www')
-rw-r--r--www/js/EventCtrl.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index d8925dee..11db7d2a 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -164,6 +164,7 @@ angular.module('zmApp.controllers')
//console.log("I got STATE PARAM " + $stateParams.id);
$scope.id = parseInt($stateParams.id, 10);
$scope.showEvent = $stateParams.playEvent || false;
+ $scope.monitors = NVRDataModel.getMonitorsNow();
//console.log("BEFORE ENTER >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");