FIX: postLabel was not working for totals (#6904)

FIX: postLabel was not working for totals (#6904)

diff --git a/app/assets/javascripts/admin/models/report.js.es6 b/app/assets/javascripts/admin/models/report.js.es6
index 68c8281..e5a7634 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: `<a href='${href}'>${postTitle}</a>`
+      formatedValue:
+        postTitle && href ? `<a href='${href}'>${postTitle}</a>` : "—"
     };
   },

GitHub sha: 7908a522

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: