Skip to content

Commit 08bf35c

Browse files
committed
Model commit function as fully async
1 parent 782a57a commit 08bf35c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ const Changes: FC<{
10621062
});
10631063
if (!changes) return;
10641064

1065-
commitCreate.mutate(
1065+
await commitCreate.mutateAsync(
10661066
{
10671067
projectId,
10681068
relativeTo: {
@@ -1130,7 +1130,7 @@ const Changes: FC<{
11301130
hotkeys: [{ hotkey: "Mod+Shift+B" }],
11311131
});
11321132

1133-
const commitCommand = useCommand(() => void commit(), {
1133+
const commitCommand = useCommand(commit, {
11341134
enabled: outlineMode._tag === "Default" && !!branch,
11351135
group: "Changes",
11361136
commandPalette: { label: "Commit" },

0 commit comments

Comments
 (0)