Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: cleanup

Marc Seitz6cd98694b870
diff --git a/components/navigation-menu.tsx b/components/navigation-menu.tsx
index 6f3267db..8f655c73 100644
--- a/components/navigation-menu.tsx
+++ b/components/navigation-menu.tsx
@@ -69,6 +69,10 @@ const NavItem: React.FC<Props["navigation"][0]> = ({
active = true;
}
+ if (segment === "analytics" && router.pathname.includes("groups")) {
+ active = false;
+ }
+
return (
<li
className={cn(
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/views/index.ts b/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/views/index.ts
index 0d8caa74..9409c7a6 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/views/index.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/groups/[groupId]/views/index.ts
@@ -36,7 +36,7 @@ export default async function handle(
id: teamId,
users: {
some: {
- userId: (session.user as CustomUser).id,
+ userId: userId,
},
},
},