aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/app/view/AttributesController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/AttributesController.js b/web/app/view/AttributesController.js
index c042b765f..5be94dec3 100644
--- a/web/app/view/AttributesController.js
+++ b/web/app/view/AttributesController.js
@@ -27,7 +27,7 @@ Ext.define('Traccar.view.AttributesController', {
var store, propertyName, i = 0, attributes;
store = Ext.create('Traccar.store.Attributes');
store.setProxy(Ext.create('Ext.data.proxy.Memory'));
- if (this.getView().record.phantom) {
+ if (typeof this.getView().record.get('attributes') === 'undefined') {
this.getView().record.set('attributes', {});
}
attributes = this.getView().record.get('attributes');