Skip to content

Commit 73b1d11

Browse files
committed
Fix bug
1 parent 648c479 commit 73b1d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/components/DiffCommitSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default defineComponent({
195195
start = this.commits[firstSelected - 1].id;
196196
}
197197
const end = this.commits.findLast((x) => x.selected).id;
198-
if (firstSelected === end) {
198+
if (start === end) {
199199
// if the start and end are the same, we show this single commit
200200
window.location.assign(`${this.issueLink}/commits/${start}${this.queryParams}`);
201201
} else if (start === this.merge_base && end === this.commits.at(-1).id) {

0 commit comments

Comments
 (0)