Skip to content

Commit d7fede0

Browse files
committed
Ensure page content loaded from tempalte when tempalte specified and no blocks exist
1 parent 39ffe6e commit d7fede0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/better_together/pages/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<% end %>
2727

2828
<%= render layout: @layout do %>
29-
<% if @page.template.present? && @content_blocks.size > 0 %>
29+
<% if @page.template.present? && @content_blocks.size.zero? %>
3030
<%= render template: @page.template %>
3131
<% else %>
3232
<%= render @page.hero_block if @page.hero_block %>

0 commit comments

Comments
 (0)