Gusted 2024-08-24 18:23:54 +02:00
parent 9272425bab
commit b061a14e15
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 8 additions and 1 deletions

View file

@ -132,7 +132,7 @@ export default {
}));
this.commits.reverse();
this.lastReviewCommitSha = results.last_review_commit_sha || null;
if (this.lastReviewCommitSha && this.commits.findIndex((x) => x.id === this.lastReviewCommitSha) === -1) {
if (this.lastReviewCommitSha && !this.commits.some((x) => x.id === this.lastReviewCommitSha)) {
// the lastReviewCommit is not available (probably due to a force push)
// reset the last review commit sha
this.lastReviewCommitSha = null;