From 11d35fb1ddac9eed2ba78e0400272b95486be494 Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Mon, 9 Oct 2023 12:40:23 +0200 Subject: [PATCH] Fix layout --- .../motion-multiselect/services/motion-multiselect.service.ts | 2 ++ 1 file changed, 2 insertions(+) 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 }));