Skip to content

Commit

Permalink
Fix bookmark deletion issue
Browse files Browse the repository at this point in the history
Removed the condition checking the result in the `handleRemoveConfirmation` function. The function now always deletes the bookmark when called, which fixes the issue where bookmarks were not being deleted when the user confirmed the deletion.
  • Loading branch information
linusfj committed Dec 15, 2023
1 parent 8f9341d commit 0f1172f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions new-client/src/plugins/Bookmarks/BookmarksView.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,9 @@ const BookmarksView = (props) => {
}
};

const handleRemoveConfirmation = (result) => {
const handleRemoveConfirmation = () => {
setShowRemovalConfirmation(false);
if (result) {
props.model.deleteBookmark(bookmarkToDelete);
}
props.model.deleteBookmark(bookmarkToDelete);
setBookmarkToDelete(null);
};

Expand Down

0 comments on commit 0f1172f

Please sign in to comment.