mirror of
https://github.com/apache/superset.git
synced 2026-05-30 04:39:20 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -250,11 +250,6 @@ const COMPOSITE_LABELS: Record<string, string> = {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user