aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-19 16:11:56 +0000
committerMohamedBassem <me@mbassem.com>2024-03-19 16:11:56 +0000
commit1b07d6de9c137f9660d83ded2a47b5e79679b74f (patch)
tree2dfba686f320684baf463aa3b8e4c8fea6daba9e /apps/web/components/dashboard
parentd9d67250c85a5989e580c9944a6da50111632ed4 (diff)
downloadkarakeep-1b07d6de9c137f9660d83ded2a47b5e79679b74f.tar.zst
fix(web): Show editor card when there are no bookmarks
Diffstat (limited to 'apps/web/components/dashboard')
-rw-r--r--apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx2
1 files changed, 1 insertions, 1 deletions
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 (