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; }