Fix error on non-issue pages with comment areas.

This commit is contained in:
Connor Shea 2016-06-05 12:24:36 -06:00
parent 5b0316eab5
commit f0f8efeb34
No known key found for this signature in database
GPG Key ID: E52237E5B35A83E6
1 changed files with 1 additions and 1 deletions

View File

@ -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.