aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 165fd032..84ed800d 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');
+ }
}
}]
}