From 900fc5da641b1b025d375e45962e899bc413443f Mon Sep 17 00:00:00 2001 From: Superset Dev Date: Thu, 14 May 2026 16:40:58 -0700 Subject: [PATCH] fix(plugin-chart-country-map): drop unused COMPOSITE_CHOICES constant After the composite-scoping refactor moved composite choices to a country-aware mapStateToProps, COMPOSITE_CHOICES was orphaned and tripped lint-frontend / validate-frontend tsc with TS6133. Co-Authored-By: Claude Opus 4.7 --- .../plugin-chart-country-map/src/plugin/controlPanel.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-country-map/src/plugin/controlPanel.tsx b/superset-frontend/plugins/plugin-chart-country-map/src/plugin/controlPanel.tsx index f859f084b7a..793d537b1a9 100644 --- a/superset-frontend/plugins/plugin-chart-country-map/src/plugin/controlPanel.tsx +++ b/superset-frontend/plugins/plugin-chart-country-map/src/plugin/controlPanel.tsx @@ -250,11 +250,6 @@ const COMPOSITE_LABELS: Record = { france_overseas: t('France (with overseas territories)'), }; -const COMPOSITE_CHOICES: Array<[string, string]> = M.composites.map(c => [ - c.id, - COMPOSITE_LABELS[c.id] || c.id, -]); - // Composites grouped by anchor country (ISO_A3). Composites without a // country in the manifest fall into a "global" bucket and remain // available regardless of the country selection — keeps backward