Skip to content
Snippets Groups Projects
Commit b7032dc2 authored by Florent Lavelle's avatar Florent Lavelle
Browse files

minor fix

parent 17bf28ed
No related branches found
No related tags found
2 merge requests!254version 2.3.2,!219FIX: petite correction
......@@ -295,7 +295,7 @@ const mapUtil = {
},
retrieveFeatureColor: function (featureType, properties) {
const colorsStyle = featureType.colors_style.value ? featureType.colors_style.value : featureType.colors_style;
const colorsStyle = featureType.colors_style && featureType.colors_style.value ? featureType.colors_style.value : featureType.colors_style;
if (featureType && colorsStyle && colorsStyle.custom_field_name) {
const currentValue = properties[colorsStyle.custom_field_name];
const colorStyle = colorsStyle.colors[currentValue];
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment