aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/EventsController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/EventsController.js')
-rw-r--r--web/app/view/EventsController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/EventsController.js b/web/app/view/EventsController.js
index d9e0c1ed..e11b4ff6 100644
--- a/web/app/view/EventsController.js
+++ b/web/app/view/EventsController.js
@@ -85,7 +85,7 @@ Ext.define('Traccar.view.EventsController', {
deselectEvent: function (object) {
- if (object !== undefined) {
+ if (object) {
this.deselectFeature();
}
},