aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/ComputedAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/edit/ComputedAttributes.js')
-rw-r--r--web/app/view/edit/ComputedAttributes.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/web/app/view/edit/ComputedAttributes.js b/web/app/view/edit/ComputedAttributes.js
index 741a1048..b4699e84 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,