fix collapse categories dependencies and reset list on team change
This commit is contained in:
parent
ddd5538f23
commit
292d72dc79
2 changed files with 2 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ const CategoryBody = ({currentChannelId, sortedIds, category, limit}: Props) =>
|
|||
collapsed={category.collapsed}
|
||||
/>
|
||||
);
|
||||
}, [currentChannelId]);
|
||||
}, [currentChannelId, category.collapsed]);
|
||||
|
||||
return (
|
||||
<FlatList
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ const ChannelListScreen = (props: ChannelProps) => {
|
|||
teamsCount={props.teamsCount}
|
||||
/>
|
||||
<ChannelList
|
||||
key={props.currentTeamId}
|
||||
iconPad={canAddOtherServers && props.teamsCount <= 1}
|
||||
isTablet={isTablet}
|
||||
teamsCount={props.teamsCount}
|
||||
|
|
|
|||
Loading…
Reference in a new issue