From 528cd025880bdb656e19736654e6621e8a4b27b3 Mon Sep 17 00:00:00 2001 From: Torsten Date: Mon, 23 Jan 2023 13:10:09 +0200 Subject: [PATCH] small failsafe --- app/helpers/merged/cards_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/merged/cards_helper.rb b/app/helpers/merged/cards_helper.rb index d576ffc..f35f31a 100644 --- a/app/helpers/merged/cards_helper.rb +++ b/app/helpers/merged/cards_helper.rb @@ -3,7 +3,7 @@ module Merged include ViewHelper #for previews 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