File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -383,10 +383,25 @@ function buildIntegrationTriggerOutput(
383383 structuredInput : Record < string , unknown > ,
384384 hasStructured : boolean
385385) : NormalizedBlockOutput {
386+ const output : NormalizedBlockOutput = { }
387+
386388 if ( hasStructured ) {
387- return { ...structuredInput }
389+ for ( const [ key , value ] of Object . entries ( structuredInput ) ) {
390+ output [ key ] = value
391+ }
388392 }
389- return isPlainObject ( workflowInput ) ? ( workflowInput as NormalizedBlockOutput ) : { }
393+
394+ if ( isPlainObject ( workflowInput ) ) {
395+ for ( const [ key , value ] of Object . entries ( workflowInput ) ) {
396+ if ( value !== undefined && value !== null ) {
397+ output [ key ] = value
398+ } else if ( ! Object . hasOwn ( output , key ) ) {
399+ output [ key ] = value
400+ }
401+ }
402+ }
403+
404+ return mergeFilesIntoOutput ( output , workflowInput )
390405}
391406
392407function extractSubBlocks ( block : SerializedBlock ) : Record < string , unknown > | undefined {
You can’t perform that action at this time.
0 commit comments