mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +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) {
|
if (lastTeam) {
|
||||||
redirect(`/teams/${lastTeam}/websites`);
|
redirect(`/teams/${lastTeam}/websites`);
|
||||||
|
} else {
|
||||||
|
redirect(`/websites`);
|
||||||
}
|
}
|
||||||
|
|
||||||
redirect(`/websites`);
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue