This commit is contained in:
Lunny Xiao 2025-07-23 14:50:09 -07:00
parent 648c479159
commit 73b1d11a04
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -195,7 +195,7 @@ export default defineComponent({
start = this.commits[firstSelected - 1].id;
}
const end = this.commits.findLast((x) => x.selected).id;
if (firstSelected === end) {
if (start === end) {
// if the start and end are the same, we show this single commit
window.location.assign(`${this.issueLink}/commits/${start}${this.queryParams}`);
} else if (start === this.merge_base && end === this.commits.at(-1).id) {