chat: handle 'no chats' case

This commit is contained in:
Matilde Park 2020-03-27 16:42:29 -04:00
parent 5b6902e065
commit 952ea831d9

View File

@ -66,7 +66,7 @@ export class Sidebar extends Component {
return selectedPaths.includes(each)
})
.map((each, i) => {
let channels = groupedChannels[each];
let channels = groupedChannels[each] || [];
if (channels.length === 0) return;
if (groupedChannels["/~/"] && groupedChannels["/~/"].length !== 0) {
i = i + 1;