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

This commit is contained in:
Joffrey JAFFEUX 2019-01-18 17:06:43 +01:00 committed by GitHub
parent 0b6be2cebc
commit 7908a522a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>` : "—"
};
},