From c4f42142a8b0f369964a7d6e3a0d366611a0d5e8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 22 Jun 2025 18:11:04 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15111 --- app/src/layout/dock/Outline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts index ddf92c768..1a0be1228 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; }