Skip to content

Commit

Permalink
Rescue error when there's no partial,
Browse files Browse the repository at this point in the history
by not rendering anything.
  • Loading branch information
tomdonarski committed Oct 19, 2023
1 parent b069541 commit aa1c1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/admin/products/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% content_for :page_actions do %>
<%= render partial: 'spree/shared/admin/preview_link' %>
<%= render partial: 'spree/shared/admin/preview_link' rescue nil %>
<% end %>

<%= render partial: 'spree/admin/shared/product_tabs', locals: {current: :details} %>
Expand Down

0 comments on commit aa1c1b9

Please sign in to comment.