mirror of
https://github.com/documenso/documenso.git
synced 2025-11-21 04:01:45 +10:00
fix: wip
This commit is contained in:
@ -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));
|
||||
|
||||
@ -19,7 +19,7 @@ export const loader = () => {
|
||||
const { currentTeam } = getLoaderSession();
|
||||
|
||||
if (!currentTeam) {
|
||||
throw redirect('/documents');
|
||||
throw redirect('/settings/teams');
|
||||
}
|
||||
|
||||
const trpcHeaders = {
|
||||
|
||||
Reference in New Issue
Block a user