Skip to content

Commit

Permalink
fix: Delete confirmation doesn't disappear after bulk deletion of lin…
Browse files Browse the repository at this point in the history
…ks using WebUI. Fixes #290 (#292)

closing delete dialog after deleting the bookmarks
  • Loading branch information
kamtschatka authored Jul 13, 2024
1 parent ee167be commit e65aadb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/components/dashboard/BulkBookmarksAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default function BulkBookmarksAction() {
toast({
description: `${selectedBookmarks.length} bookmarks have been deleted!`,
});
setIsDeleteDialogOpen(false);
};

const alreadyFavourited =
Expand All @@ -102,7 +103,7 @@ export default function BulkBookmarksAction() {
hidden: !isBulkEditEnabled,
},
{
name: alreadyArchived ? "Un-arhcive" : "Archive",
name: alreadyArchived ? "Un-archive" : "Archive",
icon: <ArchivedActionIcon size={18} archived={!!alreadyArchived} />,
action: () => updateBookmarks({ archived: !alreadyArchived }),
isPending: updateBookmarkMutator.isPending,
Expand Down

0 comments on commit e65aadb

Please sign in to comment.