Fix automation saving issue
This commit is contained in:
parent
90c20206b3
commit
bd7c91b1bd
|
@ -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 }
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue