Unify mock chart continuity across live ticks

This commit is contained in:
rcourtman 2026-04-01 17:20:42 +01:00
parent 675dff7da5
commit afc7a11cea
43 changed files with 820 additions and 38 deletions

View file

@ -76,8 +76,9 @@ export const getHostRevealTargetIndex = (
rowIndexById: Map<string, number>,
expandedResourceId: string | null,
highlightedResourceId: string | null | undefined,
revealedResourceId?: string | null,
): number | null => {
const targetId = expandedResourceId ?? highlightedResourceId ?? null;
const targetId = expandedResourceId ?? revealedResourceId ?? highlightedResourceId ?? null;
if (!targetId) return null;
return rowIndexById.get(targetId) ?? null;
};