- id,
- doc: outputArray.map((outputParam: CommandOutputParameter) => (outputParam.doc))
- // Doc can be string or string[], concat conveniently works with both
- .reduce((acc: string[], input: string | string[]) => (acc.concat(input)), [])
- // Remove undefined and empty doc strings
- .filter(str => str)
- .join(", "),
- value: outputArray.map(outputParam => getInputDisplayValue(auth, {
- type: outputParam.class,
- value: outputParam,
- ...outputParam
- }, pdh, outputParam.secondaryFiles))
- .reduce((acc: ProcessIOParameter[], params: ProcessIOParameter[]) => (acc.concat(params)), [])
+ id: getIOParamId(output),
+ label: output.label || "",
+ value: getIOParamDisplayValue(auth, Object.assign(output, { value: values[getIOParamId(output)] || [] }), pdh)