aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-10 15:24:27 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-10 15:24:27 +1200
commit6a86eeb75c208e06abe3c82897338413a1c67fc2 (patch)
treead6475d975f3b825268b7740d3e4368bbf9cbe69 /web/app/controller
parent6ba407056722a6ee1e4f97454e0e02a3aa21439e (diff)
downloadtraccar-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.js2
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,