aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/DevicesController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/edit/DevicesController.js')
-rw-r--r--web/app/view/edit/DevicesController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/edit/DevicesController.js b/web/app/view/edit/DevicesController.js
index 79cbe2fa..82e471c2 100644
--- a/web/app/view/edit/DevicesController.js
+++ b/web/app/view/edit/DevicesController.js
@@ -111,7 +111,7 @@ Ext.define('Traccar.view.edit.DevicesController', {
},
onSelectionChange: function (el, record) {
- if (record !== undefined) {
+ if (record) {
this.updateButtons([record]);
this.fireEvent('selectdevice', record, true);
}
@@ -124,7 +124,7 @@ Ext.define('Traccar.view.edit.DevicesController', {
},
deselectDevice: function (object) {
- if (object !== undefined) {
+ if (object) {
this.deselectFeature();
}
},