Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/8849

Vanessa915170aa700e
diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts
index c228b98022..3931f76868 100644
--- a/app/src/protyle/header/Title.ts
+++ b/app/src/protyle/header/Title.ts
@@ -299,7 +299,7 @@ export class Title {
if (response.data.ial["custom-riff-decks"]) {
this.element.setAttribute("custom-riff-decks", response.data.ial["custom-riff-decks"]);
}
- protyle.background.render(response.data.ial, protyle.block.rootID);
+ protyle.background?.render(response.data.ial, protyle.block.rootID);
protyle.wysiwyg.renderCustom(response.data.ial);
this.editElement.setAttribute("data-render", "true");
this.setTitle(response.data.ial.title);
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index 4bfa46559d..ec969d83e5 100644
--- a/app/src/protyle/util/onGet.ts
+++ b/app/src/protyle/util/onGet.ts
@@ -228,7 +228,9 @@ const setHTML = (options: {
if (options.isSyncing) {
disabledForeverProtyle(protyle);
} else {
- protyle.breadcrumb.element.nextElementSibling.textContent = "";
+ if (protyle.breadcrumb) {
+ protyle.breadcrumb.element.nextElementSibling.textContent = "";
+ }
protyle.element.removeAttribute("disabled-forever");
if (window.siyuan.config.readonly || window.siyuan.config.editor.readOnly) {
disabledProtyle(protyle);