Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(web): Show editor card when there are no bookmarks

MohamedBassem1b07d6de9c13
diff --git a/apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx b/apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx
index 4b0dc4fd..03c60a66 100644
--- a/apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx
+++ b/apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx
@@ -77,7 +77,7 @@ export default function BookmarksGrid({
const breakpointConfig = useMemo(() => getBreakpointConfig(), []);
const bookmarks = data!.pages.flatMap((b) => b.bookmarks);
- if (bookmarks.length == 0) {
+ if (bookmarks.length == 0 && !showEditorCard) {
return <p>No bookmarks</p>;
}
return (