aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'web/app')
-rw-r--r--web/app/view/EventsController.js2
-rw-r--r--web/app/view/ReportController.js2
2 files changed, 2 insertions, 2 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();
}
},
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 2ffca966..2f10cde1 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -247,7 +247,7 @@ Ext.define('Traccar.view.ReportController', {
},
deselectReport: function (object) {
- if (object !== undefined) {
+ if (object) {
this.deselectFeature();
}
},