A platform for community discussion. Free, open, simple.
FIX: Don't add `undefined` as a class name
Robin Wardbb11375590c2
diff --git a/app/assets/javascripts/discourse/widgets/post-edits-indicator.js.es6 b/app/assets/javascripts/discourse/widgets/post-edits-indicator.js.es6index bffad584673..39ecedc81a6 100644--- a/app/assets/javascripts/discourse/widgets/post-edits-indicator.js.es6+++ b/app/assets/javascripts/discourse/widgets/post-edits-indicator.js.es6@@ -41,7 +41,7 @@ export default createWidget("post-edits-indicator", {if (attrs.wiki) {icon = "pencil-square-o";- className = `${className} wiki`;+ className = `${className || ''} wiki`.trim();if (attrs.version > 1) {title = `${I18n.t("post.last_edited_on")} ${date}`;