fix get enable_manually_sort nil error

This commit is contained in:
chiu 2024-10-17 03:00:02 +00:00
parent b3dbabef5b
commit 553fb82adc
1 changed files with 0 additions and 1 deletions

View File

@ -178,7 +178,6 @@ module AnnouncementsHelper
end
def sort_announcements(announcements)
enable_manually_sort = enable_manually_sort
if enable_manually_sort
announcements = announcements.sort_by { |announcement|
tmp1 = announcement["postdate"].blank?