From 33839479e269bed905f9eefc374060b9d3ee7e19 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Tue, 5 Oct 2021 12:35:40 +0200
Subject: feat(preview): filesystem basics in place

---
 components/Sidebar/index.tsx | 5 +++++
 1 file changed, 5 insertions(+)

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

diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx
index 05f5720..4f314da 100644
--- a/components/Sidebar/index.tsx
+++ b/components/Sidebar/index.tsx
@@ -51,6 +51,11 @@ const Sidebar = (props: SidebarProps) => {
         console.log(res)
         setPreviewText(res)
       })
+      .catch((e) => {
+        setPreviewText(
+          'Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it.',
+        )
+      })
   }
 
   useEffect(() => {
-- 
cgit v1.2.3

