Vanessa 2025-06-22 18:11:04 +08:00
parent a3c2e5c437
commit c4f42142a8

View file

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