From 77577a665ea8d840a14cce6cd31d96a62f7bd8b7 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 14 Nov 2019 12:32:19 +0100 Subject: [PATCH] MOBILE-1501 participants: Empty split view when new search --- src/core/user/components/participants/participants.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/user/components/participants/participants.ts b/src/core/user/components/participants/participants.ts index 330daf791..0ace51d8d 100644 --- a/src/core/user/components/participants/participants.ts +++ b/src/core/user/components/participants/participants.ts @@ -187,6 +187,7 @@ export class CoreUserParticipantsComponent implements OnInit { this.searchQuery = query; this.searchPage = 0; this.participants = []; + this.splitviewCtrl.emptyDetails(); } return this.userProvider.searchParticipants(this.courseId, query, true, this.searchPage).then((result) => { @@ -195,9 +196,6 @@ export class CoreUserParticipantsComponent implements OnInit { this.canLoadMore = result.canLoadMore; this.searchPage++; - if (!loadMore && this.participants.length) { - this.gotoParticipant(this.participants[0].id); - } }).catch((error) => { this.domUtils.showErrorModalDefault(error, 'Error searching users.'); this.loadMoreError = true;