FIX: Don't add `undefined` as a class name

This commit is contained in:
Robin Ward 2018-06-20 10:37:24 -04:00
parent 0365806b93
commit bb11375590
1 changed files with 1 additions and 1 deletions

View File

@ -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}`;