diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-04-10 15:24:27 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-04-10 15:24:27 +1200 |
commit | 6a86eeb75c208e06abe3c82897338413a1c67fc2 (patch) | |
tree | ad6475d975f3b825268b7740d3e4368bbf9cbe69 /web/app/controller | |
parent | 6ba407056722a6ee1e4f97454e0e02a3aa21439e (diff) | |
download | traccar-server-6a86eeb75c208e06abe3c82897338413a1c67fc2.tar.gz traccar-server-6a86eeb75c208e06abe3c82897338413a1c67fc2.tar.bz2 traccar-server-6a86eeb75c208e06abe3c82897338413a1c67fc2.zip |
Use correct method to find by id
Diffstat (limited to 'web/app/controller')
-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 5bd567619..bb65e0048 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -102,7 +102,7 @@ Ext.define('Traccar.controller.Root', { array = data.devices; store = Ext.getStore('Devices'); for (i = 0; i < array.length; i++) { - entity = store.findRecord('id', array[i].id, 0, false, false, true); + entity = store.getById(array[i].id); if (entity) { entity.set({ status: array[i].status, |