From bb11375590c235419ad8b0114b9e56ecc2bc52d4 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 20 Jun 2018 10:37:24 -0400 Subject: [PATCH] FIX: Don't add `undefined` as a class name --- .../javascripts/discourse/widgets/post-edits-indicator.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/widgets/post-edits-indicator.js.es6 b/app/assets/javascripts/discourse/widgets/post-edits-indicator.js.es6 index 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}`;