Skip to content

Commit

Permalink
fix: World Map right-click value (#21209)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Aug 26, 2022
1 parent 0726840 commit d41f44f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,13 @@ function WorldMap(element, props) {
const handleContextMenu = source => {
const pointerEvent = d3.event;
pointerEvent.preventDefault();
const val = source.id || source.country;
const formattedVal = mapData[val].name;
const val = mapData[source.id || source.country].name;
const filters = [
{
col: entity,
op: '==',
val,
formattedVal,
formattedVal: val,
},
];
onContextMenu(filters, pointerEvent.clientX, pointerEvent.clientY);
Expand Down

0 comments on commit d41f44f

Please sign in to comment.