diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index 5116c340780cc6ed2fdf2f0351569418e0b4e448..e73071653c9980ae23cf5249af96b678359584cd 100644 --- a/app/models/communication/website/page.rb +++ b/app/models/communication/website/page.rb @@ -130,7 +130,7 @@ class Communication::Website::Page < ApplicationRecord def best_bodyclass return bodyclass if bodyclass.present? - parent&.best_bodyclass unless kind_home? || parent.kind_home? + parent&.best_bodyclass unless kind_home? || parent&.kind_home? end def update_children_paths