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 share parameter logic

Francis Caoe57239de1e7b
diff --git a/src/app/share/[slug]/[[...path]]/ShareNav.tsx b/src/app/share/[slug]/[[...path]]/ShareNav.tsx
index db927afef..11cc2f9b9 100644
--- a/src/app/share/[slug]/[[...path]]/ShareNav.tsx
+++ b/src/app/share/[slug]/[[...path]]/ShareNav.tsx
@@ -129,7 +129,7 @@ export function ShareNav({
const items = allItems
.map(section => ({
label: section.label,
- items: section.items.filter(item => parameters[item.id] !== false),
+ items: section.items.filter(item => parameters[item.id] === true),
}))
.filter(section => section.items.length > 0);