refactor: fix dashboard filter issue

This commit is contained in:
2026-03-20 12:30:12 +05:30
parent 96cc4b6f71
commit 137da4993e
2 changed files with 7 additions and 2 deletions

View File

@@ -58,9 +58,11 @@ export function DashboardMap({
: projectSummary.packages || {};
for (const [pkgName, pkg] of Object.entries(packagesToProcess)) {
if (!pkg) continue;
const chainagesToProcess =
selectedChainageId && selectedChainageId !== 'all'
? { [selectedChainageId]: (pkg as any).chainages[selectedChainageId] }
? { [selectedChainageId]: (pkg as any).chainages?.[selectedChainageId] }
: (pkg as any).chainages || {};
for (const [chnName, chn] of Object.entries(chainagesToProcess)) {