Lattice Grid Buy a licence

designer · console.warn

designer.commands.register: a command is a s...

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

A command is registered under a string name with the function that runs it. One of the two was missing or the wrong type, so nothing was registered.

The fix

Pass a name and a function (ctx, ...args) => ….

The smallest fix

designer.commands.register(renamePage, (ctx, id, title) => ctx.commit(next, renamePage));

Reference

Covered in full at the API reference.