diff --git a/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyParticipants.js b/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyParticipants.js index 8a8ce41f8..54efa3606 100644 --- a/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyParticipants.js +++ b/public/js/components/Cis/Coodle/Components/CoodleSurvey/CoodleSurveyParticipants.js @@ -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,