From 8bd9cac9f5d52f2bb96d37aea056901adec2c67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Mon, 15 Jan 2024 10:18:37 +0100 Subject: [PATCH] Fix joining channels from the find channels screen (#7732) * Fix joining channels from the find channels screen * Fix lint --------- Co-authored-by: Mattermost Build --- 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 (