From 6a86eeb75c208e06abe3c82897338413a1c67fc2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 10 Apr 2016 15:24:27 +1200 Subject: Use correct method to find by id --- web/app/controller/Root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3