+
<%= button_to shop_wishlist_path(item.id), method: :delete, class: "shop-goals__remove", title: "Remove from wishlist" do %>
×
<% end %>
diff --git a/app/controllers/shop/wishlists_controller.rb b/app/controllers/shop/wishlists_controller.rb
index 910424244..c381ee2fe 100644
--- a/app/controllers/shop/wishlists_controller.rb
+++ b/app/controllers/shop/wishlists_controller.rb
@@ -10,6 +10,10 @@ def create
def destroy
authorize :shop
current_user.shop_wishlists.where(shop_item_id: params[:id]).destroy_all
- render json: { wishlisted: false }
+
+ respond_to do |format|
+ format.json { render json: { wishlisted: false } }
+ format.turbo_stream { render turbo_stream: turbo_stream.remove("shop_wishlist_item_#{params[:id]}") }
+ end
end
end