mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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) {
|
||||
icon = "pencil-square-o";
|
||||
className = `${className} wiki`;
|
||||
className = `${className || ''} wiki`.trim();
|
||||
|
||||
if (attrs.version > 1) {
|
||||
title = `${I18n.t("post.last_edited_on")} ${date}`;
|
||||
|
Loading…
Reference in New Issue
Block a user