Skip to content

Commit

Permalink
Content can be nil if partial returns without rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Dec 10, 2024
1 parent abeb0d7 commit c5102a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/_activity.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% content = yield %>
<% unless content.strip.blank? %>
<% unless content&.strip.blank? %>
<div class="activity">
<%= content %>
</div>
Expand Down

0 comments on commit c5102a7

Please sign in to comment.