FIX: Don't add `undefined` as a class name
This commit is contained in:
parent
0365806b93
commit
bb11375590
|
@ -41,7 +41,7 @@ export default createWidget("post-edits-indicator", {
|
||||||
|
|
||||||
if (attrs.wiki) {
|
if (attrs.wiki) {
|
||||||
icon = "pencil-square-o";
|
icon = "pencil-square-o";
|
||||||
className = `${className} wiki`;
|
className = `${className || ''} wiki`.trim();
|
||||||
|
|
||||||
if (attrs.version > 1) {
|
if (attrs.version > 1) {
|
||||||
title = `${I18n.t("post.last_edited_on")} ${date}`;
|
title = `${I18n.t("post.last_edited_on")} ${date}`;
|
||||||
|
|
Loading…
Reference in New Issue