Skip to content

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

removed empty array

Aashish-Upadhyay-1015960de50fe87
diff --git a/lib/swr/use-teams.ts b/lib/swr/use-teams.ts
index e0ed79c9..a701f4be 100644
--- a/lib/swr/use-teams.ts
+++ b/lib/swr/use-teams.ts
@@ -9,7 +9,7 @@ export function useTeams() {
const { data: session } = useSession();
const { data: teams, isValidating } = useSWR<Team[]>(
- router.isReady && session ? "/api/teams" : [],
+ router.isReady && session && "/api/teams",
fetcher,
{
dedupingInterval: 20000,