1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Merge pull request #13458 from Budibase/fix/clear-relationships-automation

Fix issue where automation meta fields were being overridden
This commit is contained in:
Michael Drury 2024-04-17 16:19:35 +01:00 committed by GitHub
commit 0b8062d733
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -374,11 +374,13 @@ class Orchestrator {
for (let [innerObject, innerValue] of Object.entries(
originalStepInput[key][innerKey]
)) {
originalStepInput[key][innerKey][innerObject] =
automationUtils.substituteLoopStep(
innerValue as string,
`steps.${loopStepNumber}`
)
if (typeof innerValue === "string") {
originalStepInput[key][innerKey][innerObject] =
automationUtils.substituteLoopStep(
innerValue,
`steps.${loopStepNumber}`
)
}
}
}
}
@ -458,7 +460,6 @@ class Orchestrator {
inputs,
step.schema.inputs
)
try {
// appId is always passed
const outputs = await stepFn({