mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-26 12:24:26 +03:00
🐛 fix: prevent duplicate authors from being added when remoteBranch is present but pr is not
This commit is contained in:
parent
0d008ff74b
commit
0938c82793
@ -33,7 +33,7 @@ export class CombinedBranch {
|
|||||||
if (this.pr?.author) {
|
if (this.pr?.author) {
|
||||||
authors.push(this.pr.author);
|
authors.push(this.pr.author);
|
||||||
}
|
}
|
||||||
if (this.remoteBranch) {
|
if (this.remoteBranch && !this.pr) {
|
||||||
// TODO: Is there a better way to filter out duplicates?
|
// TODO: Is there a better way to filter out duplicates?
|
||||||
authors.push(
|
authors.push(
|
||||||
...this.remoteBranch.authors.filter((a) => !authors.some((b) => a.email == b.email))
|
...this.remoteBranch.authors.filter((a) => !authors.some((b) => a.email == b.email))
|
||||||
|
Loading…
Reference in New Issue
Block a user