aboutsummaryrefslogtreecommitdiff
path: root/web/app/DeviceImages.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/DeviceImages.js')
-rw-r--r--web/app/DeviceImages.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/app/DeviceImages.js b/web/app/DeviceImages.js
index af45ce9..9b837e8 100644
--- a/web/app/DeviceImages.js
+++ b/web/app/DeviceImages.js
@@ -22,7 +22,8 @@ Ext.define('Traccar.DeviceImages', {
getImageSvg: function (color, zoom, angle, category) {
var i, info, svg, width, height, rotateTransform, scaleTransform, fill;
- info = Ext.getStore('DeviceImages').findRecord('key', category || 'default', 0, false, false, true);
+ info = Ext.getStore('DeviceImages').findRecord('key', category || 'default', 0, false, false, true) ||
+ Ext.getStore('DeviceImages').findRecord('key', 'default', false, false, true);
svg = Ext.clone(info.get('svg'));
if (!svg) {
svg = this.cloneDocument(info.get('svg'));