From 1cb938fceda6d6ec068501d9fa24a54c561a2ea7 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Thu, 6 May 2021 14:47:08 +1000 Subject: [PATCH] SidebarListHeader: fix group feed, again --- .../views/landscape/components/Sidebar/SidebarListHeader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx b/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx index edcda928e..c297e44db 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx @@ -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(