Merge pull request #7042 from betagouv/fix_sections

quick fix of sections in preview
This commit is contained in:
Paul Chavard 2022-03-15 10:58:45 +01:00 committed by GitHub
commit 968531f45b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ class Champ < ApplicationRecord
end
def sections
@sections ||= dossier.sections_for(self)
@sections ||= dossier&.sections_for(self)
end
def mandatory_and_blank?