mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
coodle, filtering existing participants from participant search results
This commit is contained in:
@@ -134,6 +134,15 @@ export default {
|
||||
};
|
||||
}
|
||||
})
|
||||
.filter((searchResult) => {
|
||||
return (
|
||||
searchResult.type === "group" ||
|
||||
!this.participants.some(
|
||||
(existingParticipant) =>
|
||||
existingParticipant.uid === searchResult.uid,
|
||||
)
|
||||
);
|
||||
})
|
||||
.toSorted(
|
||||
(searchResultA, searchResultB) =>
|
||||
searchResultB.rank - searchResultA.rank,
|
||||
|
||||
Reference in New Issue
Block a user