mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
chat: handle 'no chats' case
This commit is contained in:
parent
5b6902e065
commit
952ea831d9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user