From 06f29e91093996882092fd8bb8ae7767081306c7 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 2 Apr 2019 17:40:38 +0800 Subject: [PATCH] =?UTF-8?q?500=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/challenges/_challenges_left_nav.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) %>