This commit is contained in:
David Nguyen
2025-02-12 18:39:00 +11:00
parent 15922d447b
commit 4c57095ee1
11 changed files with 72 additions and 231 deletions

View File

@ -5,8 +5,9 @@ import { formatDocumentsPath } from '@documenso/lib/utils/teams';
export function loader() {
const { currentTeam } = getLoaderSession();
if (!currentTeam) {
throw redirect('/documents');
throw redirect('/settings/teams');
}
throw redirect(formatDocumentsPath(currentTeam.url));

View File

@ -19,7 +19,7 @@ export const loader = () => {
const { currentTeam } = getLoaderSession();
if (!currentTeam) {
throw redirect('/documents');
throw redirect('/settings/teams');
}
const trpcHeaders = {