From 1a9f482a6a3234e443e2e8d6aff6f09daab85dfe Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 19 Apr 2018 16:52:03 +0500 Subject: - Removed code duplication - Simplified attribute name renderer - Removed unnecessary proxy --- web/app/view/edit/Attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app/view/edit/Attributes.js') diff --git a/web/app/view/edit/Attributes.js b/web/app/view/edit/Attributes.js index cb0503de..af4f5a90 100644 --- a/web/app/view/edit/Attributes.js +++ b/web/app/view/edit/Attributes.js @@ -48,7 +48,7 @@ Ext.define('Traccar.view.edit.Attributes', { if (this.attributesStore) { attribute = Ext.getStore(this.attributesStore).getById(value); } - return attribute && attribute.get('name') ? attribute.get('name') : value; + return attribute && attribute.get('name') || value; } }, { text: Strings.stateValue, -- cgit v1.2.3