designer ยท console.warn
designer.selectPage: there is no page {id}; ...
Printed by designer, prefixed [lattice], since 1.88.0.
Warnings reference › designer:page:*
- Identifier
designer:page:*- Raised by
- designer
- Since
- 1.88.0
What happened
selectPage selects a page by id, and no page in the state has that id, so the selected page and the canvas were left as they were and false was returned.
The fix
Select one of the ids designer.pages() lists.
The smallest fix
designer.selectPage(designer.pages()[0].id);
Reference
Covered in full at the API reference.