From 1602c0f76cfbc273239280b65dc528e231350908 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 27 Mar 2017 10:05:33 +0500 Subject: Fix deselecting --- web/app/view/StateController.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web/app/view/StateController.js') diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index 0833186..661bc96 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -167,8 +167,10 @@ Ext.define('Traccar.view.StateController', { }, clearReport: function (store) { - this.position = null; - Ext.getStore('Attributes').removeAll(); + if (!this.deviceId) { + this.position = null; + Ext.getStore('Attributes').removeAll(); + } }, onSelectionChange: function (selected, records) { -- cgit v1.2.3