aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/Devices.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/edit/Devices.js')
-rw-r--r--web/app/view/edit/Devices.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index 196df73..267a38b 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -139,13 +139,7 @@ Ext.define('Traccar.view.edit.Devices', {
labelField: 'name',
store: 'Groups'
},
- renderer: function (value) {
- var group;
- if (value !== 0) {
- group = Ext.getStore('Groups').getById(value);
- return group ? group.get('name') : value;
- }
- }
+ renderer: Traccar.AttributeFormatter.getFormatter('groupId')
}, {
text: Strings.deviceStatus,
dataIndex: 'status',