diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-19 16:11:56 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-19 16:11:56 +0000 |
| commit | 1b07d6de9c137f9660d83ded2a47b5e79679b74f (patch) | |
| tree | 2dfba686f320684baf463aa3b8e4c8fea6daba9e /apps/web/components | |
| parent | d9d67250c85a5989e580c9944a6da50111632ed4 (diff) | |
| download | karakeep-1b07d6de9c137f9660d83ded2a47b5e79679b74f.tar.zst | |
fix(web): Show editor card when there are no bookmarks
Diffstat (limited to 'apps/web/components')
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx | 2 |
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 ( |
