diff --git a/app/views/projects/_md_preview.html.haml b/app/views/projects/_md_preview.html.haml index 59a952dd662040e1ed66b12adb27f165af8e389d..28a28282fd3b3c51abaeb9c776ee39be6e4f2ad3 100644 --- a/app/views/projects/_md_preview.html.haml +++ b/app/views/projects/_md_preview.html.haml @@ -8,7 +8,7 @@ %a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 } Preview - - if @issue.confidential? + - if defined?(@issue) && @issue.confidential? %li.confidential-issue-warning = icon('warning') %span This is a confidential issue. Your comment will not be visible to the public.