From 91cd0d837c9352a1c54430a77499f1231a9766aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 21 Nov 2019 13:43:59 +0100 Subject: [PATCH] MOBILE-3205 forum: Fix discussion actions search --- src/addon/mod/forum/components/index/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addon/mod/forum/components/index/index.ts b/src/addon/mod/forum/components/index/index.ts index f3c181186..8951cfdcd 100644 --- a/src/addon/mod/forum/components/index/index.ts +++ b/src/addon/mod/forum/components/index/index.ts @@ -114,7 +114,7 @@ export class AddonModForumIndexComponent extends CoreCourseModuleMainActivityCom if (data.discussionId) { // Discussion changed, search it in the list of discussions. const discussion = this.discussions.find((disc) => { - return data.discussionId = disc.discussion; + return data.discussionId == disc.discussion; }); if (discussion) {