fix(map): keep overview progress count consistent
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-21 23:07:41 +02:00
parent db96404218
commit 61731d9b0f
+9 -2
View File
@@ -1357,8 +1357,15 @@ export function MapWorkspace({
[themeInsights],
)
const readSelectionThemeCount = useMemo(
() => new Set(themeResults.map((result) => result.theme.id)).size,
[themeResults],
() => {
const relevantThemeIds = new Set(selectionRelevantThemes.map((theme) => theme.id))
return new Set(
themeResults
.filter((result) => relevantThemeIds.has(result.theme.id))
.map((result) => result.theme.id),
).size
},
[selectionRelevantThemes, themeResults],
)
const activeThemeInsight = themeResults.find((item) => item.theme.id === activeThemeId)
const activeResultDataset = activeThemeInsight?.dataset ?? activeThemeDataset