diff options
Diffstat (limited to 'web/app/view/state/StateController.js')
-rw-r--r-- | web/app/view/state/StateController.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js index b3a8e8eed..1e2c271d1 100644 --- a/web/app/view/state/StateController.js +++ b/web/app/view/state/StateController.js @@ -75,6 +75,7 @@ Ext.define('Traccar.view.state.StateController', { updatePosition: function(position) { + var other; var store = Ext.getStore('Parameters'); store.removeAll(); @@ -89,7 +90,11 @@ Ext.define('Traccar.view.state.StateController', { } var xml = position.get('other'); - var other = this.parseXml(xml); + if (typeof xml === 'string' || xml instanceof String) { + other = this.parseXml(xml); + } else { + other = xml; + } for (var key in other) { if (other.hasOwnProperty(key)) { store.add(Ext.create('Traccar.model.Parameter', { |