Fix automation saving issue

This commit is contained in:
Peter Clement 2023-03-10 14:40:26 +00:00
parent 90c20206b3
commit bd7c91b1bd
2 changed files with 2 additions and 3 deletions

View File

@ -50,7 +50,7 @@
$: tempFilters = filters
$: stepId = block.stepId
$: bindings = getAvailableBindings(block, $selectedAutomation?.definition)
$: getInputData(testData, block.inputs)
$: getInputData(testData, cloneDeep(block.inputs))
$: tableId = inputData ? inputData.tableId : null
$: table = tableId
? $tables.list.find(table => table._id === inputData.tableId)
@ -79,7 +79,6 @@
searchableSchema: true,
}).schema
}
try {
if (isTestModal) {
let newTestData = { schema }

View File

@ -107,7 +107,7 @@ export function substituteLoopStep(hbsString: string, substitute: string) {
let pointer = 0,
openPointer = 0,
closedPointer = 0
while (pointer < hbsString.length) {
while (pointer < hbsString?.length) {
openPointer = hbsString.indexOf(open, pointer)
closedPointer = hbsString.indexOf(closed, pointer) + 2
if (openPointer < 0 || closedPointer < 0) {