diff --git a/web/src/lib/components/repo/pulls/PullCommitRow.svelte b/web/src/lib/components/repo/pulls/PullCommitRow.svelte index b7284b4bc..521c35bb0 100644 --- a/web/src/lib/components/repo/pulls/PullCommitRow.svelte +++ b/web/src/lib/components/repo/pulls/PullCommitRow.svelte @@ -30,9 +30,10 @@ }: Props = $props(); let expanded = $state(false); - let flipped = $state(false); + let flippedAgainst = $state(null); const changeId = $derived(commit.changeId?.slice(0, 8)); + const flipped = $derived(flippedAgainst === showChangeId); const showingChangeId = $derived(flipped ? !showChangeId : showChangeId); const id = $derived(showingChangeId && changeId ? changeId : commit.shortHash); @@ -47,7 +48,7 @@