Add safe-navigation for note author (#20571)

This commit is contained in:
Philip How 2024-01-30 20:18:59 +00:00 committed by GitHub
parent ee29318126
commit 15bac7afbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,7 +207,7 @@
<%= time_ago_in_words note.created_at %> ago
</span>
<h3 class="crayons-subtitle-2">
<%= note.author.name %>:
<%= note.author&.name || "No Author" %>:
</h3>
<p>
<%= note.content %>