From 722f4e182df7e5e2e5ef04e436568e02a3b90c5a Mon Sep 17 00:00:00 2001
From: pabois <pierreandre.boissinot@noesya.coop>
Date: Wed, 20 Apr 2022 09:47:08 +0200
Subject: [PATCH] bodyclass

---
 app/models/communication/website/page.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb
index 5116c3407..e73071653 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
-- 
GitLab