Prevent crash in preview where there is no siblings
This commit is contained in:
parent
f9c9a7c115
commit
5e5122a436
2 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ class Champ < ApplicationRecord
|
|||
end
|
||||
|
||||
def sections
|
||||
siblings.filter(&:header_section?)
|
||||
siblings&.filter(&:header_section?)
|
||||
end
|
||||
|
||||
def mandatory_and_blank?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue