diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-11-02 14:32:31 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-11-02 14:32:31 -0400 |
| commit | a8f91b80946aecd460543c551dd30dc9db401e5f (patch) | |
| tree | 0c682b57104b71d4377c50d51376823e7af7ca81 | |
| parent | 73014ac9a48fd584a4e0665358d240dde3024887 (diff) | |
odd case?
| -rw-r--r-- | package.json | 4 | ||||
| -rw-r--r-- | www/js/DataModel.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json index 1dd678a8..ef12e701 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zmninjapro", "description": "Home security mobile app for ZoneMinder", - "version": "1.3.029", + "version":"1.3.029", "displayName": "zmNinja", "author": "Pliable Pixels", "license": "custom see LICENSE.md", @@ -176,4 +176,4 @@ ] } } -}
\ No newline at end of file +} diff --git a/www/js/DataModel.js b/www/js/DataModel.js index c558d884..3e5f41c1 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -408,7 +408,7 @@ angular.module('zmApp.controllers') var as = 'undefined'; - if (!mid && monitors.length > 0) { + if (!mid && monitors && monitors.length > 0) { mid = monitors[0].Monitor.Id; } @@ -2145,7 +2145,7 @@ angular.module('zmApp.controllers') .then(function (data) { // console.log("HTTP success got " + JSON.stringify(data.monitors)); data = data.data; - monitors = data.monitors; + if (data.monitors) monitors = data.monitors; if ($rootScope.authSession == 'undefined') { |
