diff --git a/admin/app/controllers/solidus_admin/products_controller.rb b/admin/app/controllers/solidus_admin/products_controller.rb index 3ceaf0640f7..ecbee57efd3 100644 --- a/admin/app/controllers/solidus_admin/products_controller.rb +++ b/admin/app/controllers/solidus_admin/products_controller.rb @@ -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) } + end end end