From 24bf86a1bf57b489945645977d8c1e7634e4cf49 Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Sat, 2 Mar 2024 15:55:39 +0100 Subject: [PATCH] Fix top level page loading indicator - the previous method would render to the page as undefined --- gitbutler-ui/src/routes/+page.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gitbutler-ui/src/routes/+page.svelte b/gitbutler-ui/src/routes/+page.svelte index 050b8cc3b..c8fa6704f 100644 --- a/gitbutler-ui/src/routes/+page.svelte +++ b/gitbutler-ui/src/routes/+page.svelte @@ -26,13 +26,12 @@ return null; }) ); + + $: if ($redirect$) goto(`/${$redirect$}/`); {#if $redirect$ === undefined} Loading... -{:else if $redirect$} - - {goto(`/${$redirect$}/`)} {:else if !$analyticsConfirmed} -{:else} +{:else if $redirect$ === null}