From 9d1692fbcf322db2d95586b1ab6768ba9328e5df Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Sat, 9 Oct 2021 20:07:46 +0200
Subject: fix(preview): links in preview showing wrong name

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

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

diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx
index 3791c74..16fc2ac 100644
--- a/components/Sidebar/Link.tsx
+++ b/components/Sidebar/Link.tsx
@@ -72,7 +72,7 @@ export const NormalLink = (props: NormalLinkProps) => {
       _hover={{ textDecoration: 'none', cursor: 'pointer', bgColor: coolHighlightColor + '22' }}
       _focus={{ outlineColor: highlightColor }}
     >
-      {children}
+      {nodeById[uri]?.title}
     </Text>
   )
 }
-- 
cgit v1.2.3

