From 73e7e485de93cf4b4a27d239fb3a4fb8b9b1e505 Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Wed, 11 Mar 2020 09:51:23 -0600 Subject: [PATCH] fix: remove favorite from page after deletion Resolves #220 --- resources/assets/scripts/routes/favorites.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/scripts/routes/favorites.js b/resources/assets/scripts/routes/favorites.js index 07c2a01..974c799 100644 --- a/resources/assets/scripts/routes/favorites.js +++ b/resources/assets/scripts/routes/favorites.js @@ -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); }