Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: require currentTeam for swr
Marc Seitz2b0b9f7c7d3d
diff --git a/lib/swr/use-team.ts b/lib/swr/use-team.tsindex 30497607..b7bb3b2d 100644--- a/lib/swr/use-team.ts+++ b/lib/swr/use-team.ts@@ -7,11 +7,11 @@ export function useGetTeam() {const teamInfo = useTeam();const { data: team, error } = useSWR<TeamDetail>(- `/api/teams/${teamInfo?.currentTeam?.id}`,+ teamInfo?.currentTeam && `/api/teams/${teamInfo.currentTeam.id}`,fetcher,{dedupingInterval: 20000,- }+ },);return {