mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
SidebarListHeader: fix group feed, again
This commit is contained in:
parent
1136daedfc
commit
1cb938fced
@ -53,8 +53,8 @@ export function SidebarListHeader(props: {
|
|||||||
const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels';
|
const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels';
|
||||||
|
|
||||||
let feedPath: any = null;
|
let feedPath: any = null;
|
||||||
if ('group' in metadata?.config && typeof metadata.config.group === 'string') {
|
if (metadata.config && 'group' in metadata?.config && 'resource' in metadata.config.group) {
|
||||||
feedPath = metadata.config.group;
|
feedPath = metadata.config.group.resource;
|
||||||
}
|
}
|
||||||
|
|
||||||
const unreadCount = useHarkState(
|
const unreadCount = useHarkState(
|
||||||
|
Loading…
Reference in New Issue
Block a user