Remove double filter for directChannels
This commit is contained in:
parent
19ecc150b6
commit
2cfb0ba77b
1 changed files with 1 additions and 2 deletions
|
|
@ -63,8 +63,7 @@ const CategoryBody = ({sortedChannels, category, hiddenChannelIds, limit, onChan
|
|||
}, [category.collapsed]);
|
||||
|
||||
useEffect(() => {
|
||||
const direct = directChannels.filter(isDMorGM);
|
||||
fetchDirectChannelsInfo(serverUrl, direct);
|
||||
fetchDirectChannelsInfo(serverUrl, directChannels);
|
||||
}, [directChannels.length]);
|
||||
|
||||
const height = ids.length ? ids.length * 40 : 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue