Skip to content

Commit 8f356ed

Browse files
authored
Merge pull request #12665 from gitbutlerapp/ui-bug-fix
Fix svelte related bug where UI can freeze
2 parents ba6b184 + 0560135 commit 8f356ed

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/desktop/src/components/StackView.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@
144144
const commitQuery = $derived(
145145
commitId ? stackService.commitById(stableProjectId, stableStackId, commitId) : undefined,
146146
);
147+
const commitFiles = $derived(
148+
commitId ? stackService.commitChanges(stableProjectId, commitId) : undefined,
149+
);
147150
const runHooks = $derived(projectRunCommitHooks(stableProjectId));
148151
const isCommitView = $derived(!!(branchName && commitId));
149152
@@ -606,7 +609,6 @@
606609
})
607610
: { amendHandler: undefined, squashHandler: undefined, hunkHandler: undefined }}
608611
{#if branchName && commitId}
609-
{@const commitFiles = stackService.commitChanges(projectId, commitId)}
610612
<Dropzone
611613
handlers={[amendHandler, squashHandler, hunkHandler].filter(isDefined)}
612614
fillHeight

0 commit comments

Comments
 (0)