From 292d72dc79518a42732dc4aa65714961973b1965 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Wed, 23 Mar 2022 11:14:57 -0300 Subject: [PATCH] fix collapse categories dependencies and reset list on team change --- app/components/channel_list/categories/body/category_body.tsx | 2 +- app/screens/home/channel_list/channel_list.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/channel_list/categories/body/category_body.tsx b/app/components/channel_list/categories/body/category_body.tsx index 38f3787a9..017475a9c 100644 --- a/app/components/channel_list/categories/body/category_body.tsx +++ b/app/components/channel_list/categories/body/category_body.tsx @@ -33,7 +33,7 @@ const CategoryBody = ({currentChannelId, sortedIds, category, limit}: Props) => collapsed={category.collapsed} /> ); - }, [currentChannelId]); + }, [currentChannelId, category.collapsed]); return ( { teamsCount={props.teamsCount} />