fix: filter out same-page transitions (reloads) from Sankey

This commit is contained in:
Usman Baig
2026-03-12 23:08:30 +01:00
parent 4e7c495160
commit df394b85ef

View File

@@ -69,6 +69,7 @@ function buildSankeyData(transitions: PathTransition[], depth: number) {
for (const t of transitions) {
if (t.step_index >= numCols || t.step_index + 1 >= numCols) continue
if (t.from_path === t.to_path) continue // skip same-page transitions (reloads)
const fromId = `${t.step_index}:${t.from_path}`
const toId = `${t.step_index + 1}:${t.to_path}`