Bug Report π
Some templates like late delivery and penalty(with optional/else), give the following error`:

Expected Behavior
The templates should be inserted properly.
Current Behavior
Error is encountered.
Steps to Reproduce
- Open the contract editor.
- From knobs, select the
late delivery and penalty(else/optional).
Context (Environment)
Desktop
- OS: [e.g. macOS] Zorin OS (Ubuntu based)
- Browser: [e.g. Chrome, Safari] Brave