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
+1 -1
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.