Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix journeys path counts bug

Francis Cao45d6b16b0dc7
diff --git a/src/app/(main)/reports/journey/JourneyView.tsx b/src/app/(main)/reports/journey/JourneyView.tsx
index 9b9179380..3e0453879 100644
--- a/src/app/(main)/reports/journey/JourneyView.tsx
+++ b/src/app/(main)/reports/journey/JourneyView.tsx
@@ -41,9 +41,7 @@ export default function JourneyView() {
const active = selected && !!activePaths.find(path => path.items[columnIndex] === name);
if (!nodes[name]) {
- const paths = data.filter((d, i) => {
- return i !== columnIndex && d.items[columnIndex] === name;
- });
+ const paths = data.filter(d => d.items[columnIndex] === name);
const from =
columnIndex > 0 &&