From cc5d9f4ff3738ddf7b4ab376f67b7ce6c4941fec Mon Sep 17 00:00:00 2001 From: rulingcom Date: Tue, 20 May 2025 00:02:49 +0800 Subject: [PATCH] fixed nil issue --- app/controllers/curations_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/curations_controller.rb b/app/controllers/curations_controller.rb index f970b7b..56cdb31 100644 --- a/app/controllers/curations_controller.rb +++ b/app/controllers/curations_controller.rb @@ -730,12 +730,14 @@ class CurationsController < ApplicationController } end end + sections.compact! if !announcement.deadline.nil? && announcement.deadline < Time.now return { "tags" => [], "bulletin_files" => [], "bulletin_links" => [], + "sections" => sections, "data" => { "title" => announcement.title, "subtitle_ann" => '',