Fix delay workflow block setup

This commit is contained in:
Andrew Kingston 2020-09-17 16:00:55 +01:00
parent 6b11add939
commit 076ed09c38
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@
// Extract all outputs from all previous steps as available bindings // Extract all outputs from all previous steps as available bindings
let bindings = [] let bindings = []
for (let idx = 0; idx < blockIdx; idx++) { for (let idx = 0; idx < blockIdx; idx++) {
const outputs = Object.entries(allSteps[idx].schema?.outputs?.properties) const outputs = Object.entries(
allSteps[idx].schema?.outputs?.properties ?? {}
)
bindings = bindings.concat( bindings = bindings.concat(
outputs.map(([name, value]) => ({ outputs.map(([name, value]) => ({
label: name, label: name,