-
-
Notifications
You must be signed in to change notification settings - Fork 453
Closed
Description
Describe the bug
Mockoon is generating an error when using setVar within an #each block. This behavior appears to be similar to #429.
Example error message: Error while serving the content: Cannot create property 'testVar' on string '1'
To Reproduce
This is a sample Response Body that results in this error. This Response will work if setVar is removed.
{
{{#each (split '1 2 3')}}
{{setVar 'testVar' '4'}}
"test": {{this}}
{{/each}}
}
Mockoon version:
1.20.0
OS / OS version:
Windows 10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done (ready for next release)