aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/StateController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r--web/app/view/StateController.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index 08331867..661bc961 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) {