diff options
author | Evgeny S Maksimov <me@vragam.net> | 2019-02-26 21:36:43 +0300 |
---|---|---|
committer | Evgeny S Maksimov <me@vragam.net> | 2019-02-26 21:36:43 +0300 |
commit | ff0194c227975faa5e2f1eca3007f82c5eefc620 (patch) | |
tree | c67134710964c4e2b003ce3e3041d119cb5bcc57 | |
parent | e3e14d53eb06240577600aa6179489e4a3a36957 (diff) | |
download | trackermap-web-ff0194c227975faa5e2f1eca3007f82c5eefc620.tar.gz trackermap-web-ff0194c227975faa5e2f1eca3007f82c5eefc620.tar.bz2 trackermap-web-ff0194c227975faa5e2f1eca3007f82c5eefc620.zip |
Small improvements
-rw-r--r-- | web/app/view/EventsController.js | 2 | ||||
-rw-r--r-- | web/app/view/ReportController.js | 2 |
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(); } }, |