From d2ba79a6958e0f84625cabee5e61d126ccf8e9b7 Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Fri, 3 Nov 2023 12:27:21 +0000 Subject: [PATCH] Prevent navigation on clicking refresh button --- packages/ui/src/routes/[projectId]/Navigation.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/routes/[projectId]/Navigation.svelte b/packages/ui/src/routes/[projectId]/Navigation.svelte index 931511156..81e28b7b5 100644 --- a/packages/ui/src/routes/[projectId]/Navigation.svelte +++ b/packages/ui/src/routes/[projectId]/Navigation.svelte @@ -161,9 +161,10 @@ { + on:click={(e) => { fetching = true; branchController.fetchFromTarget().finally(() => (fetching = false)); + e.preventDefault(); }} >