mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: page load
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
export let data;
|
||||
|
||||
const { url } = $page;
|
||||
const { organizations, account } = data;
|
||||
if (organizations.total) {
|
||||
const teamId = account.prefs.organization ?? organizations.teams[0].$id;
|
||||
if (!teamId) {
|
||||
goto(`${base}/account/organizations${url.search}`);
|
||||
} else {
|
||||
goto(`${base}/organization-${teamId}${url.search}`);
|
||||
}
|
||||
} else {
|
||||
goto(`${base}/onboarding${url.search}`);
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user