This commit is contained in:
Vanessa 2022-05-31 18:00:19 +08:00
parent c8b7d9facf
commit f8b9c5ed92
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ export class Outline extends Model {
public updateDocTitle(ial?:IObject) {
if (this.type === "pin") {
if (ial) {
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`;
if (typeof ial.icon === "undefined" && this.headerElement.nextElementSibling.firstElementChild) {
iconHTML = this.headerElement.nextElementSibling.firstElementChild.outerHTML;
}