From 496f6c706b0ad2f3c34475e8821db0181dba184a Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 29 Dec 2023 00:05:55 +0200 Subject: [PATCH] render cell only if width specified --- app/views/submissions/_value.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/submissions/_value.html.erb b/app/views/submissions/_value.html.erb index 7ed33341..8fd522e3 100644 --- a/app/views/submissions/_value.html.erb +++ b/app/views/submissions/_value.html.erb @@ -22,7 +22,7 @@ <%= svg_icon('check', class: "aspect-square #{area['w'] > area['h'] ? '!w-auto !h-full' : '!w-full !h-auto'}") %> <% end %> - <% elsif field['type'] == 'cells' %> + <% elsif field['type'] == 'cells' && area['cell_w'] %> <% cell_width = area['cell_w'] / area['w'] * 100 %>
<% (0..(area['w'] / area['cell_w']).ceil).each do |index| %>