diff --git a/client/src/app/site/pages/meetings/pages/motions/components/motion-multiselect/services/motion-multiselect.service.ts b/client/src/app/site/pages/meetings/pages/motions/components/motion-multiselect/services/motion-multiselect.service.ts index 2afc9cf6a8..0f7f0ac5e8 100644 --- a/client/src/app/site/pages/meetings/pages/motions/components/motion-multiselect/services/motion-multiselect.service.ts +++ b/client/src/app/site/pages/meetings/pages/motions/components/motion-multiselect/services/motion-multiselect.service.ts @@ -419,9 +419,11 @@ export class MotionMultiselectService { } return submitterIds.map(id => ({ id })); } + private submitterInMotion(userId: Id, motion: ViewMotion): boolean { return motion.submitters.some(submitter => userId == submitter.user_id); } + private newSubmittersInMotion(userIds: Ids, motion: ViewMotion): Identifiable[] { const newSubmitters: Id[] = userIds.filter(userId => !this.submitterInMotion(userId, motion)); return newSubmitters.map(id => ({ id }));