designer ยท console.warn
designer.commands.run: there is no command {...
Printed by designer, prefixed [lattice], since 1.88.0.
Warnings reference › designer:command:*
- Identifier
designer:command:*- Raised by
- designer
- Since
- 1.88.0
What happened
commands.run runs a registered command by name, and no command is registered under that name, so nothing ran and undefined was returned.
The fix
Register the command first, or run one designer.commands.list() names.
The smallest fix
designer.commands.run(selectPage, p2);
Reference
Covered in full at the API reference.