Skip to content

Commit

Permalink
fix(sankey): return cached value
Browse files Browse the repository at this point in the history
  • Loading branch information
susiwen8 committed Mar 2, 2022
1 parent a411087 commit c572d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/visual/VisualMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ function setVisualToOption(thisOption: VisualMappingInnerOption, visualArr: Visu
if (!color && __DEV__) {
warn(`'${item}' is an illegal color, fallback to '#000000'`, true);
}
return zrColor.parse(item) || [0, 0, 0, 1];
return color || [0, 0, 0, 1];
});
}
return visualArr;
Expand Down

0 comments on commit c572d10

Please sign in to comment.