Skip to content

Commit

Permalink
Fix linting (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel authored Oct 9, 2023
1 parent da0c967 commit d840303
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
Expand Down

0 comments on commit d840303

Please sign in to comment.