mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Moved the redirect to else statement
This commit is contained in:
parent
a645dc7ba5
commit
50bfee3328
1 changed files with 2 additions and 2 deletions
|
|
@ -10,9 +10,9 @@ export default function RootPage() {
|
|||
|
||||
if (lastTeam) {
|
||||
redirect(`/teams/${lastTeam}/websites`);
|
||||
} else {
|
||||
redirect(`/websites`);
|
||||
}
|
||||
|
||||
redirect(`/websites`);
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue