mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
fix: Right click on country map with code filter (#22081)
This commit is contained in:
committed by
GitHub
parent
ed1f50eab6
commit
824dc7188b
@@ -52,6 +52,7 @@ const formatter = getNumberFormatter();
|
||||
|
||||
function WorldMap(element, props) {
|
||||
const {
|
||||
countryFieldtype,
|
||||
entity,
|
||||
data,
|
||||
width,
|
||||
@@ -111,7 +112,7 @@ function WorldMap(element, props) {
|
||||
const pointerEvent = d3.event;
|
||||
pointerEvent.preventDefault();
|
||||
const key = source.id || source.country;
|
||||
const val = mapData[key]?.name;
|
||||
const val = countryFieldtype === 'name' ? mapData[key]?.name : key;
|
||||
if (val) {
|
||||
const filters = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user