Skip to content

Commit 46a564b

Browse files
committed
Fix incorrect method chain for page card images when user can't show the page
1 parent 37163d2 commit 46a564b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<% end %>
1010
<% end %>
1111
<% else %>
12-
<% if page.primary_image&.media&.attached? %>
12+
<% if page.primary_image&.attached? %>
1313
<%= image_tag rails_storage_proxy_url(page.primary_image), class: "card-img-top", alt: "#{page.title}" %>
1414
<% else %>
1515
<%= card_image_tag(page) %>

0 commit comments

Comments
 (0)