Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: cleanup
Marc Seitz000618d68fd9
diff --git a/components/layouts/app.tsx b/components/layouts/app.tsxindex 475cc6fb..a10a72d8 100644--- a/components/layouts/app.tsx+++ b/components/layouts/app.tsx@@ -28,7 +28,6 @@ export default function AppLayout({ children }: { children: React.ReactNode }) {<AppBreadcrumb /></div></header>- {/* Trial banner shown only on trial */}<TrialBanner /><BlockingModal /><main className="flex-1">{children}</main>diff --git a/context/team-context.tsx b/context/team-context.tsxindex 01b7f11a..0b69048b 100644--- a/context/team-context.tsx+++ b/context/team-context.tsx@@ -55,7 +55,7 @@ export const TeamProvider = ({ children }: TeamContextProps): JSX.Element => {isLoading: loading,setCurrentTeam,}),- [teams, currentTeam, loading],+ [teams, currentTeam, currentTeamId, loading],);return <TeamContext.Provider value={value}>{children}</TeamContext.Provider>;diff --git a/lib/swr/use-team.ts b/lib/swr/use-team.tsindex c42f6b54..e18a35c5 100644--- a/lib/swr/use-team.ts+++ b/lib/swr/use-team.ts@@ -5,10 +5,10 @@ import { TeamDetail } from "@/lib/types";import { fetcher } from "@/lib/utils";export function useGetTeam() {- const teamInfo = useTeam();+ const { currentTeamId } = useTeam();const { data: team, error } = useSWR<TeamDetail>(- teamInfo?.currentTeam && `/api/teams/${teamInfo.currentTeam.id}`,+ currentTeamId && `/api/teams/${currentTeamId}`,fetcher,{dedupingInterval: 20000,