aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/Devices.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-28 09:29:46 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-28 09:29:46 +0500
commitd15a49e82481381a571c0c2285edd2fc77ccb5ca (patch)
tree604d904829d2069d6d0ba900d23d08a54123a8c5 /web/app/view/edit/Devices.js
parenta7bfd5431b73b5d634b769e64483e81815364bca (diff)
downloadtrackermap-web-d15a49e82481381a571c0c2285edd2fc77ccb5ca.tar.gz
trackermap-web-d15a49e82481381a571c0c2285edd2fc77ccb5ca.tar.bz2
trackermap-web-d15a49e82481381a571c0c2285edd2fc77ccb5ca.zip
Unwrap ternary operator
Diffstat (limited to 'web/app/view/edit/Devices.js')
-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 eda8bbde..c9538c8b 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;