From aa1c1b92750acfe6e87c4ff9f1afbd6b3e9039d5 Mon Sep 17 00:00:00 2001 From: Tomasz Donarski Date: Thu, 19 Oct 2023 16:48:34 +0200 Subject: [PATCH] Rescue error when there's no partial, by not rendering anything. --- app/views/spree/admin/products/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/products/edit.html.erb b/app/views/spree/admin/products/edit.html.erb index 59dc8ae0fa..7ad8cea122 100644 --- a/app/views/spree/admin/products/edit.html.erb +++ b/app/views/spree/admin/products/edit.html.erb @@ -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} %>