summaryrefslogtreecommitdiff
path: root/www/js/MonitorCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/MonitorCtrl.js')
-rw-r--r--www/js/MonitorCtrl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js
index c04ef316..e9ec2f4b 100644
--- a/www/js/MonitorCtrl.js
+++ b/www/js/MonitorCtrl.js
@@ -428,7 +428,7 @@ angular.module('zmApp.controllers')
//Cleanup the modal when we're done with it!
$scope.$on('$destroy', function () {
//console.log("Destroy Monitor Modal");
- $scope.modal.remove();
+ if ($scope.modal) $scope.modal.remove();
});