From 85fbbf428f63d6989cd456850e7ba0f770d8f24f Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Wed, 10 Jan 2024 14:36:30 +0100 Subject: [PATCH] fix: properly handle commit completion and reset commit message --- .../src/routes/[projectId]/components/CommitDialog.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitbutler-ui/src/routes/[projectId]/components/CommitDialog.svelte b/gitbutler-ui/src/routes/[projectId]/components/CommitDialog.svelte index f137cef75..d2df61f91 100644 --- a/gitbutler-ui/src/routes/[projectId]/components/CommitDialog.svelte +++ b/gitbutler-ui/src/routes/[projectId]/components/CommitDialog.svelte @@ -54,9 +54,9 @@ branchController .commitBranch(branch.id, commitMessage, $selectedOwnership.toString(), $runCommitHooks) .then(() => { - isCommitting = false; commitMessage = ''; - }); + }) + .finally(() => (isCommitting = false)); } export function git_get_config(params: { key: string }) {