Merge pull request #4864 from urbit/lf/group-feed-hide

interface: hide group feed if disabled
This commit is contained in:
matildepark 2021-05-05 23:26:09 -04:00 committed by GitHub
commit abe004044e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,9 +52,9 @@ export function SidebarListHeader(props: {
const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels';
let feedPath: any = '';
if (metadata?.config && 'group' in metadata.config) {
feedPath = metadata.config.group ?? '';
let feedPath: any = null;
if ('group' in metadata?.config && typeof metadata.config.group === 'string') {
feedPath = metadata.config.group;
}
const unreadCount = useHarkState(
@ -63,7 +63,7 @@ export function SidebarListHeader(props: {
return (
<Box>
{( feedPath) ? (
{( !!feedPath) ? (
<Row
flexShrink={0}
alignItems="center"