mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
address greptile comments
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
import { Typography } from '@appwrite.io/pink-svelte';
|
||||
|
||||
$effect(() => {
|
||||
if (isVerifyEmailRedirectError(page.error)) {
|
||||
goto(resolve('/verify-email'), { replaceState: true });
|
||||
const verifyEmailPath = resolve('/verify-email');
|
||||
if (isVerifyEmailRedirectError(page.error) && page.url.pathname !== verifyEmailPath) {
|
||||
goto(verifyEmailPath, { replaceState: true });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -27,7 +27,7 @@ export const load: LayoutLoad = async ({ depends, parent, url }) => {
|
||||
depends(Dependencies.ORGANIZATION);
|
||||
|
||||
const [preferences, rawConsoleVariables, versionData] = await Promise.all([
|
||||
sdk.forConsole.account.getPrefs(),
|
||||
sdk.forConsole.account.getPrefs().catch(() => ({}) as Models.DefaultPreferences),
|
||||
sdk.forConsole.console.variables().catch(() => ({}) as Models.ConsoleVariables),
|
||||
fetch(`${endpoint}/health/version`, {
|
||||
headers: { 'X-Appwrite-Project': project as string }
|
||||
|
||||
Reference in New Issue
Block a user