diff --git a/app/components/Sidebar/Shared.tsx b/app/components/Sidebar/Shared.tsx index faa63a4af..129cd3060 100644 --- a/app/components/Sidebar/Shared.tsx +++ b/app/components/Sidebar/Shared.tsx @@ -29,7 +29,7 @@ function SharedSidebar({ rootNode, shareId }: Props) { return ( - {team && ( + {team?.name && ( } diff --git a/app/components/Sidebar/components/SharedDocumentLink.tsx b/app/components/Sidebar/components/SharedDocumentLink.tsx index ff1adceb1..9c1e70e03 100644 --- a/app/components/Sidebar/components/SharedDocumentLink.tsx +++ b/app/components/Sidebar/components/SharedDocumentLink.tsx @@ -101,6 +101,8 @@ function DocumentLink( (activeDocument?.id === node.id ? activeDocument.title : node.title) || t("Untitled"); + const icon = node.icon ?? node.emoji; + return ( <> } + icon={icon && } label={title} depth={depth} exact={false}