From fda5e08f9a2e24c43d0fb14c5b19fdb769a1a741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 13 Feb 2019 12:59:25 +0100 Subject: [PATCH] fix submitter updating (2) --- client/src/app/site/motions/models/view-motion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/motions/models/view-motion.ts b/client/src/app/site/motions/models/view-motion.ts index d14653663..f5b1bb5a3 100644 --- a/client/src/app/site/motions/models/view-motion.ts +++ b/client/src/app/site/motions/models/view-motion.ts @@ -481,7 +481,7 @@ export class ViewMotion extends BaseAgendaViewModel implements Searchable { * @param update potentially the changed agenda Item. Needs manual verification */ public updateUser(update: ViewUser): void { - if (this.motion.submitters && this.motion.submitters.findIndex(user => user.user_id === update.id)) { + if (this.motion.submitters && this.motion.submitters.find(user => user.user_id === update.id)) { const userIndex = this.submitters.findIndex(user => user.id === update.id); this.submitters[userIndex] = update; }