designer ยท console.warn
designer.setGuardrails: the guardrails are n...
Printed by designer, prefixed [lattice], since 1.89.0.
Warnings reference › designer:guardrails
- Identifier
designer:guardrails- Raised by
- designer
- Since
- 1.89.0
What happened
setGuardrails (and setProperty('guardrails', value)) replace the guardrails at run time with an object, or clear them with undefined. The value given was neither, so nothing changed, no render happened and false was returned.
The fix
Pass a guardrails object, or undefined to clear them.
The smallest fix
designer.setGuardrails({ widgets: ['grid'] });
Reference
Covered in full at the API reference.