diff --git a/plugins/org/src/helpers/helpers.ts b/plugins/org/src/helpers/helpers.ts index e0e83bec67..7da4ee32d8 100644 --- a/plugins/org/src/helpers/helpers.ts +++ b/plugins/org/src/helpers/helpers.ts @@ -107,6 +107,7 @@ export const getAllDesendantMembersForGroupEntity = async ( export const removeDuplicateEntitiesFrom = (entityArray: Entity[]) => { const seenEntities = new Map(); + return entityArray.filter(entity => { const stringifiedEntity = stringifyEntityRef(entity); const isDuplicate = seenEntities.has(stringifiedEntity);