mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
remove: redirect.
This commit is contained in:
1 parent
a666f2d0f1
commit
4cce2de628
1 file changed
-5
@@ -13,11 +13,6 @@ import { ProfileMode, resolvedProfile } from '$lib/profiles/index.svelte';
|
||||
export const load: PageLoad = async ({ parent }) => {
|
||||
const { account, organizations } = await parent();
|
||||
|
||||
/* short circuit and redirect */
|
||||
if (resolvedProfile.id === ProfileMode.STUDIO) {
|
||||
redirect(303, resolve('/'));
|
||||
}
|
||||
|
||||
const firstOrganization = organizations?.teams[0]?.$id;
|
||||
if (!resolvedProfile.showOnboarding) {
|
||||
if (!organizations?.total) {
|
||||
|
||||
Reference in new issue
Block a user