This commit is contained in:
David Nguyen
2025-05-07 15:03:20 +10:00
parent 419bc02171
commit 7abfc9e271
390 changed files with 21254 additions and 12607 deletions

View File

@ -30,7 +30,7 @@ export async function loader({ request }: Route.LoaderArgs) {
// Early return for no preferred team.
if (!preferredTeamUrl || isReferrerFromTeamUrl) {
throw redirect('/documents');
throw redirect('/dashboard');
}
const teams = await getTeams({ userId: session.user.id });
@ -38,7 +38,7 @@ export async function loader({ request }: Route.LoaderArgs) {
const currentTeam = teams.find((team) => team.url === preferredTeamUrl);
if (!currentTeam) {
throw redirect('/documents');
throw redirect('/dashboard');
}
throw redirect(formatDocumentsPath(currentTeam.url));