From 9099fd92f984b26090072f6553dff55b713589d7 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 29 Dec 2016 14:36:00 +0500 Subject: Do check in better way --- web/app/view/MapController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app') diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index 99295246..66d6809a 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -124,7 +124,7 @@ Ext.define('Traccar.view.MapController', { var feature = new ol.Feature(Traccar.GeofenceConverter .wktToGeometry(this.getView().getMapView(), geofence.get('area'))); feature.setStyle(this.getGeofenceStyle(geofence.get('name'), - geofence.get('attributes') !== undefined ? geofence.get('attributes').color : undefined)); + geofence.get('attributes') ? geofence.get('attributes').color : null)); this.getView().getGeofencesSource().addFeature(feature); return true; }, this); -- cgit v1.2.3