aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-22 17:20:20 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-22 17:20:20 +0500
commit49f6c1456371dd0bc066a9d6ad40bef824c39977 (patch)
tree19462d77b04114b1c2e42387fb100aa514cbea00
parent7e95b0a294d99360ab728fd9ba3c82a472d87c7d (diff)
downloadetbsa-traccar-web-49f6c1456371dd0bc066a9d6ad40bef824c39977.tar.gz
etbsa-traccar-web-49f6c1456371dd0bc066a9d6ad40bef824c39977.tar.bz2
etbsa-traccar-web-49f6c1456371dd0bc066a9d6ad40bef824c39977.zip
Fix Status column renderer
-rw-r--r--web/app/view/Devices.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/app/view/Devices.js b/web/app/view/Devices.js
index 165fd03..84ed800 100644
--- a/web/app/view/Devices.js
+++ b/web/app/view/Devices.js
@@ -156,8 +156,10 @@ Ext.define('Traccar.view.Devices', {
store: 'DeviceStatuses'
},
renderer: function (value, metaData) {
- metaData.tdCls = Ext.getStore('DeviceStatuses').getById(value).get('tdCls');
- return Ext.getStore('DeviceStatuses').getById(value).get('name');
+ if (value) {
+ metaData.tdCls = Ext.getStore('DeviceStatuses').getById(value).get('tdCls');
+ return Ext.getStore('DeviceStatuses').getById(value).get('name');
+ }
}
}]
}