From 5bdb2d944a08f63772497e203f47533ffb640d82 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 13 Apr 2025 18:29:14 +0000 Subject: fix: Dont download html content by default in the bookmark grid. Fixes #1198 --- .../dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/web/components/dashboard/bookmarks/action-buttons') diff --git a/apps/web/components/dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx b/apps/web/components/dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx index 3b8da82f..d45cfc82 100644 --- a/apps/web/components/dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx +++ b/apps/web/components/dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx @@ -15,7 +15,14 @@ const ArchiveBookmarkButton = React.forwardRef< HTMLButtonElement, ArchiveBookmarkButtonProps >(({ bookmarkId, onDone, ...props }, ref) => { - const { data } = api.bookmarks.getBookmark.useQuery({ bookmarkId }); + const { data } = api.bookmarks.getBookmark.useQuery( + { bookmarkId }, + { + select: (data) => ({ + archived: data.archived, + }), + }, + ); const { mutate: updateBookmark, isPending: isArchivingBookmark } = useUpdateBookmark({ -- cgit v1.2.3-70-g09d2