Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Feb 7, 2023
1 parent 0c56177 commit 9a1302f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function WorldMap(element, props) {
filterState.selectedValues.forEach(value => {
d3.select(`path.datamaps-subunit.${value}`).style(
'fill',
mapData[value].fillColor,
mapData[value]?.fillColor,
);
});
}
Expand Down

0 comments on commit 9a1302f

Please sign in to comment.