diff options
Diffstat (limited to 'web/app/view/edit/DevicesController.js')
-rw-r--r-- | web/app/view/edit/DevicesController.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/edit/DevicesController.js b/web/app/view/edit/DevicesController.js index 82e471c2..f4e46153 100644 --- a/web/app/view/edit/DevicesController.js +++ b/web/app/view/edit/DevicesController.js @@ -111,9 +111,9 @@ Ext.define('Traccar.view.edit.DevicesController', { }, onSelectionChange: function (el, record) { - if (record) { - this.updateButtons([record]); - this.fireEvent('selectdevice', record, true); + if (record && record.length) { + this.updateButtons(record); + this.fireEvent('selectdevice', record[0], true); } }, |