Skip to content

Commit

Permalink
fix(web): Show editor card when there are no bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Mar 19, 2024
1 parent d9d6725 commit 1b07d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 1b07d6d

Please sign in to comment.