aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/AttributesController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/AttributesController.js')
-rw-r--r--web/app/view/AttributesController.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/app/view/AttributesController.js b/web/app/view/AttributesController.js
index 8e6ab82a4..5be94dec3 100644
--- a/web/app/view/AttributesController.js
+++ b/web/app/view/AttributesController.js
@@ -27,6 +27,9 @@ 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 (typeof this.getView().record.get('attributes') === 'undefined') {
+ this.getView().record.set('attributes', {});
+ }
attributes = this.getView().record.get('attributes');
for (propertyName in attributes) {
if (attributes.hasOwnProperty(propertyName)) {