From 90820ca13a51b8a7e77d15896b0d34f9aba829fd Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Mon, 4 Oct 2021 14:17:34 +0200
Subject: fix: made viewer work

---
 components/Sidebar/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'components/Sidebar/index.tsx')

diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx
index 3332d39..e3845d9 100644
--- a/components/Sidebar/index.tsx
+++ b/components/Sidebar/index.tsx
@@ -88,7 +88,7 @@ const Sidebar = (props: SidebarProps) => {
             alignItems="center"
             color="black"
           >
-            <Heading size="md">{previewRoamNode}</Heading>
+            <Heading size="md">{previewRoamNode?.title}</Heading>
           </Flex>
           <Scrollbars
             //autoHeight
-- 
cgit v1.2.3

