From df394b85ef5b92620ae3258d2d622f6e99a34665 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 12 Mar 2026 23:08:30 +0100 Subject: [PATCH] fix: filter out same-page transitions (reloads) from Sankey --- components/journeys/SankeyDiagram.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/journeys/SankeyDiagram.tsx b/components/journeys/SankeyDiagram.tsx index 77e3ba9..6dc6a32 100644 --- a/components/journeys/SankeyDiagram.tsx +++ b/components/journeys/SankeyDiagram.tsx @@ -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}`