fix issue with js bindings not using quotes

This commit is contained in:
Peter Clement 2024-09-23 14:43:46 +01:00
parent 7d4aa25244
commit c083fe3bd7
1 changed files with 2 additions and 2 deletions

View File

@ -643,8 +643,8 @@
runtimeName = `loop.${name}`
} else if (block.name.startsWith("JS")) {
runtimeName = hasUserDefinedName
? `stepsByName[${bindingName}].${name}`
: `steps[${idx - loopBlockCount}].${name}`
? `stepsByName["${bindingName}"].${name}`
: `steps["${idx - loopBlockCount}"].${name}`
} else {
runtimeName = hasUserDefinedName
? `stepsByName.${bindingName}.${name}`