From fd7bada58e0f280d470af65c4fb1be1d23c79e8b Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Tue, 16 Jan 2024 11:29:24 +0200 Subject: [PATCH] Fix joining channels from the find channels screen (#7732) (#7757) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix joining channels from the find channels screen * Fix lint --------- Co-authored-by: Mattermost Build (cherry picked from commit 8bd9cac9f5d52f2bb96d37aea056901adec2c67e) Co-authored-by: Daniel Espino GarcĂ­a --- app/screens/find_channels/filtered_list/filtered_list.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/screens/find_channels/filtered_list/filtered_list.tsx b/app/screens/find_channels/filtered_list/filtered_list.tsx index 77d687d06..6d9414b7d 100644 --- a/app/screens/find_channels/filtered_list/filtered_list.tsx +++ b/app/screens/find_channels/filtered_list/filtered_list.tsx @@ -219,7 +219,8 @@ const FilteredList = ({ /> ); } - if ('teamId' in item || 'team_id' in item) { + + if ('teamId' in item) { return ( ); - } else if ('username' in item) { + } + + if ('username' in item) { return (