From 81e61409ca99c94d58e160b012ccd9b6279025b9 Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Mon, 25 Mar 2024 20:06:48 +0100 Subject: [PATCH] Fix: cancel input prompt when dismissing input modal --- gitbutler-ui/src/lib/components/PromptModal.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gitbutler-ui/src/lib/components/PromptModal.svelte b/gitbutler-ui/src/lib/components/PromptModal.svelte index 117ecb369..4accc04f7 100644 --- a/gitbutler-ui/src/lib/components/PromptModal.svelte +++ b/gitbutler-ui/src/lib/components/PromptModal.svelte @@ -49,13 +49,12 @@ } function clear() { - console.log('clearing'); modal.close(); value = ''; } - + cancel()} width="small" title="Git fetch requires input">
{#if $error} {$error.message}