aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/Devices.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-23 22:36:05 +1200
committerGitHub <noreply@github.com>2017-07-23 22:36:05 +1200
commit33eafa3dd89b517fe0b06394eb2edfebd131cb33 (patch)
tree7f6f4f267fbbbcf9090d0b003fc7a9d91f37b5e9 /web/app/view/edit/Devices.js
parentfa5f3054efe7ca926f49f19da45013e1cf1ed81c (diff)
parent58919b078db6c163f47bcf03dcc576bb5c3ac56f (diff)
downloadtrackermap-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.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 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;
}