Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/15111

Vanessac4f42142a8b0
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index ddf92c768a..1a0be1228f 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -398,7 +398,7 @@ export class Outline extends Model {
});
if (!needReload && ops.undoOperations) {
ops.undoOperations.find((item: IOperation) => {
- if (item.action === "update" && item.data.indexOf('data-type="NodeHeading"') > -1) {
+ if (item.action === "update" && item.data?.indexOf('data-type="NodeHeading"') > -1) {
needReload = true;
return true;
}