fix: await goto

This commit is contained in:
bo0tzz
2026-04-17 01:42:10 +02:00
parent 81a885c31d
commit 058bd40708
+4 -1
View File
@@ -8,6 +8,7 @@
import { getServerErrorMessage } from '$lib/utils/handle-error';
import { login } from '@immich/sdk';
import { Alert, Button, Field, Input, PasswordInput, Stack, toastManager } from '@immich/ui';
import { onMount } from 'svelte';
import { t } from 'svelte-i18n';
import type { PageData } from './$types';
@@ -23,7 +24,9 @@
let errorMessage = $state('');
let loading = $state(false);
goto(Route.authLink(), { replaceState: true });
onMount(async () => {
await goto(Route.authLink(), { replaceState: true });
});
const handleSubmit = async (event: Event) => {
event.preventDefault();