fixed nil issue
This commit is contained in:
1 parent
c3cf83c57f
commit
cc5d9f4ff3
1 file changed
+2
@@ -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" => '',
|
||||
|
||||
Reference in new issue
Block a user