diff --git a/app/views/challenges/_challenges_left_nav.html.erb b/app/views/challenges/_challenges_left_nav.html.erb index 6d2389bb..3111266d 100644 --- a/app/views/challenges/_challenges_left_nav.html.erb +++ b/app/views/challenges/_challenges_left_nav.html.erb @@ -1,6 +1,6 @@
fl mr40">任务 - <% if @shixun.propaedeutics.present? %> + <% if @shixun.try(:propaedeutics).present? %> fl mr40">背景知识 <% end %> <% if User.current.manager_of_shixun?(@shixun) %>