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 funnel step editor crash on null event values

Nejc Tomažičb58172c59164
diff --git a/src/app/api/websites/[websiteId]/values/route.ts b/src/app/api/websites/[websiteId]/values/route.ts
index d9242c504..5bbb767fa 100644
--- a/src/app/api/websites/[websiteId]/values/route.ts
+++ b/src/app/api/websites/[websiteId]/values/route.ts
@@ -54,5 +54,5 @@ export async function GET(
values = await getValues(websiteId, FILTER_COLUMNS[type], filters);
}
- return json(values.filter(n => n).sort());
+ return json(values.filter(n => n?.value != null).sort());
}