diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.ts index 9f54ff43d..4c4b32e19 100644 --- a/app/src/ai/actions.ts +++ b/app/src/ai/actions.ts @@ -93,7 +93,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => { customMenu.push({ iconHTML: Constants.ZWSP, action: "iconEdit", - label: `
${escapeHtml(item.name)}
`, + label: `
${escapeHtml(item.name)}
`, bind: (element) => { element.addEventListener("click", (event) => { if (hasClosestByClassName(event.target as Element, "b3-menu__action")) { diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index d8e1af887..3fd67c15c 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -34,7 +34,7 @@ export const initBlockPopover = (app: App) => { } } if (!tip) { - tip = aElement.getAttribute("data-href").substring(0, Constants.SIZE_TITLE); + tip = aElement.getAttribute("data-href")?.substring(0, Constants.SIZE_TITLE) || ""; const title = aElement.getAttribute("data-title"); if (title) { tip += "
" + title; diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts index 9df566f98..cc0441544 100644 --- a/app/src/config/bazaar.ts +++ b/app/src/config/bazaar.ts @@ -302,7 +302,7 @@ export const bazaar = { ${item.downloads} - ${item.preferredFunding ? `` : ""} + ${item.preferredFunding ? `` : ""}
@@ -382,7 +382,7 @@ export const bazaar = {
${item.incompatible ? `${window.siyuan.languages.incompatible}` : ""} - ${item.preferredFunding ? `` : ""} + ${item.preferredFunding ? `` : ""} @@ -469,7 +469,7 @@ export const bazaar = {
${data.preferredFunding ? - `` : + `` : `` } diff --git a/app/src/menus/workspace.ts b/app/src/menus/workspace.ts index 8f6f6d5fd..00f19631f 100644 --- a/app/src/menus/workspace.ts +++ b/app/src/menus/workspace.ts @@ -445,7 +445,7 @@ const openWorkspace = (workspace: string) => { const workspaceItem = (item: IWorkspace) => { /// #if !BROWSER return { - label: `
+ label: `
${originalPath().basename(item.path)}
`, current: !item.closed,