designer ยท console.warn
designer.addPage: adding a page is not allow...
Printed by designer, prefixed [lattice], since 1.89.0.
Warnings reference › designer:page:add
- Identifier
designer:page:add- Raised by
- designer
- Since
- 1.89.0
What happened
addPage adds a page, and the guardrails the designer was created with set pages.add to false, so the command declined and returned null.
The fix
Allow page additions in the guardrails (guardrails.pages.add), or call addPage only when they are allowed.
The smallest fix
createDesigner(el, { guardrails: { pages: { add: true } } });
Reference
Covered in full at the API reference.