Skip to content

Commit

Permalink
Fix bookmarks to allow exporting all and not just the current page
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelschwobe committed Dec 19, 2023
1 parent 48ac558 commit 8088ee3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/routes/bookmarks._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,15 @@ export default function BookmarksIndexPage() {
columns={columnsBookmarks}
data={loaderData.data}
>
{({ idsSelected, idsNotSelected }) => (
{({ idsSelected }) => (
<>
<div className="grid grid-cols-2 gap-2 sm:grid-cols-5">
{BOOKMARK_EXPORT_FILE_EXTENSIONS.map((ext) => (
<FormExport
key={ext}
actionRoute="/bookmarks"
fileExtension={ext}
idsSelected={
idsSelected.length > 0 ? idsSelected : idsNotSelected
}
idsSelected={idsSelected}
className="w-full"
>
<ButtonExport
Expand Down

0 comments on commit 8088ee3

Please sign in to comment.