Skip to content

Commit

Permalink
fix: remove favorite from page after deletion
Browse files Browse the repository at this point in the history
Resolves #220
  • Loading branch information
greatislander committed Mar 11, 2020
1 parent 0a7a4d2 commit 73e7e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/assets/scripts/routes/favorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
} )
.then( () => {
Cookies.set('favorites', favorites.toString());
btn.parentNode.parentNode.removeChild(btn.parentNode);
btn.parentNode.parentNode.parentNode.removeChild(btn.parentNode.parentNode);
if (length === 1) {
removeAllButton.parentNode.removeChild(removeAllButton);
}
Expand Down

0 comments on commit 73e7e48

Please sign in to comment.