From a7bfd5431b73b5d634b769e64483e81815364bca Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 28 Jul 2017 08:58:54 +0500 Subject: Do not show geofenceId if it is unknown --- web/app/view/edit/Devices.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/app/view/edit') diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js index d5e6d5f4..eda8bbde 100644 --- a/web/app/view/edit/Devices.js +++ b/web/app/view/edit/Devices.js @@ -160,11 +160,11 @@ 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]); + result += name ? name + ((i < value.length - 1) ? ', ' : '') : ''; } } return result; -- cgit v1.2.3