Skip to content
Snippets Groups Projects
Commit 52eb3079 authored by pabois's avatar pabois
Browse files

bodyclass

parent 722f4e18
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ class Communication::Website::Page < ApplicationRecord
def best_featured_image
# we don't want to fallback on homepage featured_image
return featured_image if featured_image.attached? || kind_home? || parent.kind_home?
return featured_image if featured_image.attached? || kind_home? || parent&.kind_home?
parent&.best_featured_image
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment