Skip to content

Commit 54a3fcc

Browse files
committed
Don't unselect when clicking selected commit
1 parent 7c21398 commit 54a3fcc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/desktop/src/components/BranchCommitList.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@
152152
}
153153
154154
async function handleCommitClick(commitId: string, upstream: boolean) {
155-
if (selectedCommitId === commitId) {
156-
stackState.selection.set(undefined);
157-
} else {
155+
if (selectedCommitId !== commitId) {
158156
stackState.selection.set({ branchName, commitId, upstream });
159157
}
160158
projectState.stackId.set(stackId);

0 commit comments

Comments
 (0)