From 3cd2d2e792d558886e404913780116d99a443d74 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 19 May 2017 09:25:53 +0500 Subject: Position attribute name rendering optimization --- web/app/view/edit/ComputedAttributes.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'web/app/view/edit') diff --git a/web/app/view/edit/ComputedAttributes.js b/web/app/view/edit/ComputedAttributes.js index 741a104..b4699e8 100644 --- a/web/app/view/edit/ComputedAttributes.js +++ b/web/app/view/edit/ComputedAttributes.js @@ -48,12 +48,7 @@ Ext.define('Traccar.view.edit.ComputedAttributes', { text: Strings.sharedAttribute, dataIndex: 'attribute', renderer: function (value) { - var attribute = Ext.getStore('PositionAttributes').getById(value); - if (attribute) { - return attribute.get('name'); - } else { - return value; - } + return Ext.getStore('PositionAttributes').getAttributeName(value); } }, { text: Strings.sharedExpression, -- cgit v1.2.3