diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-23 22:36:05 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-23 22:36:05 +1200 |
commit | 33eafa3dd89b517fe0b06394eb2edfebd131cb33 (patch) | |
tree | 7f6f4f267fbbbcf9090d0b003fc7a9d91f37b5e9 /web/app/view/edit/Devices.js | |
parent | fa5f3054efe7ca926f49f19da45013e1cf1ed81c (diff) | |
parent | 58919b078db6c163f47bcf03dcc576bb5c3ac56f (diff) | |
download | trackermap-web-33eafa3dd89b517fe0b06394eb2edfebd131cb33.tar.gz trackermap-web-33eafa3dd89b517fe0b06394eb2edfebd131cb33.tar.bz2 trackermap-web-33eafa3dd89b517fe0b06394eb2edfebd131cb33.zip |
Merge pull request #531 from Abyss777/refactor_managers
Refactor managers
Diffstat (limited to 'web/app/view/edit/Devices.js')
-rw-r--r-- | web/app/view/edit/Devices.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js index d6018006..d5e6d5f4 100644 --- a/web/app/view/edit/Devices.js +++ b/web/app/view/edit/Devices.js @@ -161,9 +161,11 @@ Ext.define('Traccar.view.edit.Devices', { }, renderer: function (value) { var i, result = ''; - for (i = 0; i < value.length; i++) { - result += Traccar.AttributeFormatter.geofenceIdFormatter(value[i]); - result += (i < value.length - 1) ? ', ' : ''; + if (Ext.isArray(value)) { + for (i = 0; i < value.length; i++) { + result += Traccar.AttributeFormatter.geofenceIdFormatter(value[i]); + result += (i < value.length - 1) ? ', ' : ''; + } } return result; } |