From 82ca8e3a55f26a8709251f161224e92b93fc5828 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 9 Mar 2025 15:34:24 +0000
Subject: fix: Add error boundary around bookmark cards

---
 apps/web/components/dashboard/bookmarks/BookmarkCard.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'apps/web/components/dashboard/bookmarks/BookmarkCard.tsx')

diff --git a/apps/web/components/dashboard/bookmarks/BookmarkCard.tsx b/apps/web/components/dashboard/bookmarks/BookmarkCard.tsx
index ec0d4069..5f8e4e0a 100644
--- a/apps/web/components/dashboard/bookmarks/BookmarkCard.tsx
+++ b/apps/web/components/dashboard/bookmarks/BookmarkCard.tsx
@@ -6,6 +6,7 @@ import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks";
 import AssetCard from "./AssetCard";
 import LinkCard from "./LinkCard";
 import TextCard from "./TextCard";
+import UnknownCard from "./UnknownCard";
 
 export default function BookmarkCard({
   bookmark: initialData,
@@ -55,5 +56,7 @@ export default function BookmarkCard({
           bookmark={{ ...bookmark, content: bookmark.content }}
         />
       );
+    case BookmarkTypes.UNKNOWN:
+      return <UnknownCard className={className} bookmark={bookmark} />;
   }
 }
-- 
cgit v1.2.3-70-g09d2

