mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -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 handleContextMenu = source => {
|
||||||
const pointerEvent = d3.event;
|
const pointerEvent = d3.event;
|
||||||
pointerEvent.preventDefault();
|
pointerEvent.preventDefault();
|
||||||
const val = source.id || source.country;
|
const val = mapData[source.id || source.country].name;
|
||||||
const formattedVal = mapData[val].name;
|
|
||||||
const filters = [
|
const filters = [
|
||||||
{
|
{
|
||||||
col: entity,
|
col: entity,
|
||||||
op: '==',
|
op: '==',
|
||||||
val,
|
val,
|
||||||
formattedVal,
|
formattedVal: val,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
onContextMenu(filters, pointerEvent.clientX, pointerEvent.clientY);
|
onContextMenu(filters, pointerEvent.clientX, pointerEvent.clientY);
|
||||||
|
Loading…
Reference in New Issue
Block a user