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| %>