small failsafe

This commit is contained in:
Torsten 2023-01-23 13:10:09 +02:00
parent b0c2d46c48
commit 528cd02588

View File

@ -3,7 +3,7 @@ module Merged
include ViewHelper #for previews include ViewHelper #for previews
def card_section_select def card_section_select
Section.where.not(card_template: "").collect{|s| ["#{s.page.name}: #{s.header}" , s.id]} Section.where.not(card_template: "").collect{|s| ["#{s.page&.name}: #{s.header}" , s.id]}
end end
end end
end end