Skip to content

Commit

Permalink
Let the products controller render the component instead of the view
Browse files Browse the repository at this point in the history
This is a leftover from when we switched to rendering components
directly.
  • Loading branch information
elia committed Sep 18, 2023
1 parent 4a0ea5d commit 7bce83d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion admin/app/controllers/solidus_admin/products_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def update
redirect_to action: :show, status: :see_other
else
flash.now[:error] = @product.errors.full_messages.join(", ")
render action: :show, status: :unprocessable_entity

respond_to do |format|
format.html { render component('products/show').new(product: @product) }

Check warning on line 31 in admin/app/controllers/solidus_admin/products_controller.rb

View check run for this annotation

Codecov / codecov/patch

admin/app/controllers/solidus_admin/products_controller.rb#L30-L31

Added lines #L30 - L31 were not covered by tests
end
end
end

Expand Down

0 comments on commit 7bce83d

Please sign in to comment.