diff --git a/src/api/app/views/webui/reports/show.html.haml b/src/api/app/views/webui/reports/show.html.haml index a341ddd501b..080d65a7159 100644 --- a/src/api/app/views/webui/reports/show.html.haml +++ b/src/api/app/views/webui/reports/show.html.haml @@ -8,8 +8,9 @@ %p Created by = render UserAvatarComponent.new(@report.user.login) - on - = link_to_reportables(report_id: @report.id, reportable_type: @report.reportable_type, host: '') + - if @report.reportable.present? + on + = link_to_reportables(report_id: @report.id, reportable_type: @report.reportable_type, host: '') %h5 Description %p = @report.reason