fix: lose line break when set title

pr675
Hufe921 3 years ago
parent 8f1053ccfe
commit 722a910145

@ -409,6 +409,7 @@ export class CommandAdapt {
const titleId = getUUID() const titleId = getUUID()
const titleOptions = this.draw.getOptions().title const titleOptions = this.draw.getOptions().title
changeElementList.forEach(el => { changeElementList.forEach(el => {
if (!el.type && el.value === ZERO) return
if (payload) { if (payload) {
el.level = payload el.level = payload
el.titleId = titleId el.titleId = titleId

Loading…
Cancel
Save