fix error

This commit is contained in:
邱博亞 2022-03-29 14:59:01 +08:00
parent d8da3dd1c9
commit 008031e372
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class AnnouncementsController < ApplicationController
end
def manually_sort
if defined?(OrbitHelper::SharedHash)
if defined?(OrbitHelper::SharedHash) && OrbitHelper::SharedHash['announcement']
OrbitHelper::SharedHash['announcement'][:enable_manually_sort]
else
AnnouncementSetting.first.enable_manually_sort rescue false