SidebarListHeader: fix group feed, again

This commit is contained in:
Liam Fitzgerald 2021-05-06 14:47:08 +10:00
parent 1136daedfc
commit 1cb938fced
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -53,8 +53,8 @@ export function SidebarListHeader(props: {
const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels';
let feedPath: any = null;
if ('group' in metadata?.config && typeof metadata.config.group === 'string') {
feedPath = metadata.config.group;
if (metadata.config && 'group' in metadata?.config && 'resource' in metadata.config.group) {
feedPath = metadata.config.group.resource;
}
const unreadCount = useHarkState(