From 7908a522a07a8fde1348c36f6587c8b395adc2ae Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 18 Jan 2019 17:06:43 +0100 Subject: [PATCH] FIX: postLabel was not working for totals (#6904) --- app/assets/javascripts/admin/models/report.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/models/report.js.es6 b/app/assets/javascripts/admin/models/report.js.es6 index 68c82810f9a..e5a7634fb36 100644 --- a/app/assets/javascripts/admin/models/report.js.es6 +++ b/app/assets/javascripts/admin/models/report.js.es6 @@ -351,7 +351,8 @@ const Report = Discourse.Model.extend({ return { property: properties.title, value: postTitle, - formatedValue: `${postTitle}` + formatedValue: + postTitle && href ? `${postTitle}` : "—" }; },