diff options
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/controller/Root.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 902ef215..baba68a1 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -242,7 +242,7 @@ Ext.define('Traccar.controller.Root', { if (first) { deviceId = Ext.Object.fromQueryString(window.location.search).deviceId; if (deviceId) { - device = Ext.getStore('Devices').getById(deviceId); + device = Ext.getStore('VisibleDevices').findRecord('id', deviceId, 0, false, true, true); if (device) { this.fireEvent('selectdevice', device, true); } |