You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/06/24 07:23:52 UTC
(superset) 01/01: fix(country-map): pass control key as drill-by groupbyFieldName
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch feat/country-map-cross-filter
in repository https://gitbox.apache.org/repos/asf/superset.git
commit b2bd0cefab3b0aa0e767e82c2e242e63f85a5323
Author: Claude Code <no...@anthropic.com>
AuthorDate: Wed Jun 24 00:23:05 2026 -0700
fix(country-map): pass control key as drill-by groupbyFieldName
The drill-by payload set groupbyFieldName to the value of formData.entity
(the selected column name) instead of the 'entity' control key. DrillByModal
uses groupbyFieldName as a key into formData, so the selection could not be
mapped back to the chart control. Matches the world-map sibling chart.
Co-Authored-By: Claude Fable 5 <no...@anthropic.com>
---
.../plugins/legacy-plugin-chart-country-map/src/CountryMap.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/plugins/legacy-plugin-chart-country-map/src/CountryMap.ts b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/CountryMap.ts
index bcbc4bfb593..a8bbb04d0ac 100644
--- a/superset-frontend/plugins/legacy-plugin-chart-country-map/src/CountryMap.ts
+++ b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/CountryMap.ts
@@ -213,7 +213,7 @@ function CountryMap(element: HTMLElement, props: CountryMapProps) {
onContextMenu(pointerEvent.clientX, pointerEvent.clientY, {
drillToDetail: drillToDetailFilters,
crossFilter: getCrossFilterDataMask(feature),
- drillBy: { filters: drillByFilters, groupbyFieldName: entity },
+ drillBy: { filters: drillByFilters, groupbyFieldName: 'entity' },
});
};