From e65aadbcfdccb02c902dc982303ec0e8b6d39fec Mon Sep 17 00:00:00 2001 From: kamtschatka Date: Sat, 13 Jul 2024 14:15:05 +0200 Subject: [PATCH] fix: Delete confirmation doesn't disappear after bulk deletion of links using WebUI. Fixes #290 (#292) closing delete dialog after deleting the bookmarks --- apps/web/components/dashboard/BulkBookmarksAction.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/components/dashboard/BulkBookmarksAction.tsx b/apps/web/components/dashboard/BulkBookmarksAction.tsx index b78071ee..bed1bda8 100644 --- a/apps/web/components/dashboard/BulkBookmarksAction.tsx +++ b/apps/web/components/dashboard/BulkBookmarksAction.tsx @@ -83,6 +83,7 @@ export default function BulkBookmarksAction() { toast({ description: `${selectedBookmarks.length} bookmarks have been deleted!`, }); + setIsDeleteDialogOpen(false); }; const alreadyFavourited = @@ -102,7 +103,7 @@ export default function BulkBookmarksAction() { hidden: !isBulkEditEnabled, }, { - name: alreadyArchived ? "Un-arhcive" : "Archive", + name: alreadyArchived ? "Un-archive" : "Archive", icon: , action: () => updateBookmarks({ archived: !alreadyArchived }), isPending: updateBookmarkMutator.isPending,