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, 5 insertions, 3 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index d5e6d5f..c9538c8 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -160,11 +160,13 @@ Ext.define('Traccar.view.edit.Devices', {
store: 'Geofences'
},
renderer: function (value) {
- var i, result = '';
+ var i, name, result = '';
if (Ext.isArray(value)) {
for (i = 0; i < value.length; i++) {
- result += Traccar.AttributeFormatter.geofenceIdFormatter(value[i]);
- result += (i < value.length - 1) ? ', ' : '';
+ name = Traccar.AttributeFormatter.geofenceIdFormatter(value[i]);
+ if (name) {
+ result += name + ((i < value.length - 1) ? ', ' : '');
+ }
}
}
return result;