Skip to content
Snippets Groups Projects
Commit e1880ac7 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix error on color undefined and trailing whitespace

parent 80fdcdcc
No related branches found
No related tags found
1 merge request!592REDMINE_ISSUE-17552 | symbologie du type de signalement
This commit is part of merge request !592. Comments created here will be created in the context of that merge request.
...@@ -384,7 +384,7 @@ const mapService = { ...@@ -384,7 +384,7 @@ const mapService = {
switch (fieldType) { switch (fieldType) {
case 'list': case 'list':
if (currentValue) { if (currentValue) {
color = colors_style.colors ? colors_style.colors[currentValue] : null; color = colors_style.colors && colors_style.colors[currentValue];
opacity = colors_style.opacities && colors_style.opacities[currentValue]; opacity = colors_style.opacities && colors_style.opacities[currentValue];
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment