diff options
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r-- | web/app/view/DevicesController.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index 731cbeda..aa8e7886 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -124,7 +124,9 @@ Ext.define('Traccar.view.DevicesController', { var device; if (pressed) { device = this.getView().getSelectionModel().getSelection()[0]; - this.fireEvent('selectdevice', device, true); + if (device) { + this.fireEvent('selectdevice', device, true); + } } }, |