Merge pull request #13458 from Budibase/fix/clear-relationships-automation
Fix issue where automation meta fields were being overridden
This commit is contained in:
commit
0b8062d733
|
@ -374,14 +374,16 @@ class Orchestrator {
|
||||||
for (let [innerObject, innerValue] of Object.entries(
|
for (let [innerObject, innerValue] of Object.entries(
|
||||||
originalStepInput[key][innerKey]
|
originalStepInput[key][innerKey]
|
||||||
)) {
|
)) {
|
||||||
|
if (typeof innerValue === "string") {
|
||||||
originalStepInput[key][innerKey][innerObject] =
|
originalStepInput[key][innerKey][innerObject] =
|
||||||
automationUtils.substituteLoopStep(
|
automationUtils.substituteLoopStep(
|
||||||
innerValue as string,
|
innerValue,
|
||||||
`steps.${loopStepNumber}`
|
`steps.${loopStepNumber}`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (typeof value === "string") {
|
if (typeof value === "string") {
|
||||||
originalStepInput[key] =
|
originalStepInput[key] =
|
||||||
|
@ -458,7 +460,6 @@ class Orchestrator {
|
||||||
inputs,
|
inputs,
|
||||||
step.schema.inputs
|
step.schema.inputs
|
||||||
)
|
)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// appId is always passed
|
// appId is always passed
|
||||||
const outputs = await stepFn({
|
const outputs = await stepFn({
|
||||||
|
|
Loading…
Reference in New Issue