Skip to content

Commit

Permalink
Fix ioc country code cross filters
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Feb 7, 2023
1 parent 9a1302f commit 1f4c58c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ function WorldMap(element, props) {
const pointerEvent = d3.event;
pointerEvent.preventDefault();
const key = source.id || source.country;
let val = countryFieldtype === 'name' ? mapData[key]?.name : key;
let val =
countryFieldtype === 'name' ? mapData[key]?.name : mapData[key]?.country;
if (!val) {
return;
}
Expand Down Expand Up @@ -152,7 +153,8 @@ function WorldMap(element, props) {
const pointerEvent = d3.event;
pointerEvent.preventDefault();
const key = source.id || source.country;
const val = countryFieldtype === 'name' ? mapData[key]?.name : key;
const val =
countryFieldtype === 'name' ? mapData[key]?.name : mapData[key]?.country;
if (val) {
const filters = [
{
Expand Down

0 comments on commit 1f4c58c

Please sign in to comment.