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 /web/app/view | |
parent | e3e14d53eb06240577600aa6179489e4a3a36957 (diff) | |
download | etbsa-traccar-web-ff0194c227975faa5e2f1eca3007f82c5eefc620.tar.gz etbsa-traccar-web-ff0194c227975faa5e2f1eca3007f82c5eefc620.tar.bz2 etbsa-traccar-web-ff0194c227975faa5e2f1eca3007f82c5eefc620.zip |
Small improvements
Diffstat (limited to 'web/app/view')
-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 d9e0c1e..e11b4ff 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 2ffca96..2f10cde 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(); } }, |