From f1a2cc65548150d16671eeaddad9189f721888a9 Mon Sep 17 00:00:00 2001 From: Tomasz Donarski Date: Tue, 24 Oct 2023 08:17:06 +0200 Subject: [PATCH] Add conditional for rendering product action --- 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 40e20b2359..0ebb945c6e 100644 --- a/app/views/spree/admin/products/edit.html.erb +++ b/app/views/spree/admin/products/edit.html.erb @@ -10,7 +10,7 @@ target: action.target, data: action.data ) %> - <% end %> + <% end if product_actions&.items %> <% end %> <%= render partial: 'spree/admin/shared/product_tabs', locals: {current: :details} %>