diff --git a/src/editor/core/command/CommandAdapt.ts b/src/editor/core/command/CommandAdapt.ts index 33c4fa2..a66d7de 100644 --- a/src/editor/core/command/CommandAdapt.ts +++ b/src/editor/core/command/CommandAdapt.ts @@ -409,6 +409,7 @@ export class CommandAdapt { const titleId = getUUID() const titleOptions = this.draw.getOptions().title changeElementList.forEach(el => { + if (!el.type && el.value === ZERO) return if (payload) { el.level = payload el.titleId = titleId