aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/app/view/edit/Devices.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index eda8bbd..c9538c8 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -164,7 +164,9 @@ Ext.define('Traccar.view.edit.Devices', {
if (Ext.isArray(value)) {
for (i = 0; i < value.length; i++) {
name = Traccar.AttributeFormatter.geofenceIdFormatter(value[i]);
- result += name ? name + ((i < value.length - 1) ? ', ' : '') : '';
+ if (name) {
+ result += name + ((i < value.length - 1) ? ', ' : '');
+ }
}
}
return result;