mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: World Map right-click value (#21209)
This commit is contained in:
parent
0726840fb7
commit
d41f44fcdf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user