From d80f545048225e4b0d9ab0a60f3bdc74ec997731 Mon Sep 17 00:00:00 2001 From: Evgeny S Maksimov Date: Wed, 27 Feb 2019 16:12:44 +0300 Subject: Small improvements --- web/app/view/edit/DevicesController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/app') diff --git a/web/app/view/edit/DevicesController.js b/web/app/view/edit/DevicesController.js index 79cbe2f..82e471c 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(); } }, -- cgit v1.2.3