File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
apps/sim/lib/workflows/blocks Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -226,11 +226,24 @@ export function getBlockOutputs(
226226 }
227227
228228 if ( blockType === 'human_in_the_loop' ) {
229- // For human_in_the_loop, only expose url and resumeEndpoint (inputFormat fields are only available after resume)
230- return {
229+ const hitlOutputs : Record < string , any > = {
231230 url : { type : 'string' , description : 'Resume UI URL' } ,
232231 resumeEndpoint : { type : 'string' , description : 'Resume API endpoint URL for direct curl requests' } ,
233232 }
233+
234+ const normalizedInputFormat = normalizeInputFormatValue ( subBlocks ?. inputFormat ?. value )
235+
236+ for ( const field of normalizedInputFormat ) {
237+ const fieldName = field ?. name ?. trim ( )
238+ if ( ! fieldName ) continue
239+
240+ hitlOutputs [ fieldName ] = {
241+ type : ( field ?. type || 'any' ) as any ,
242+ description : `Field from resume form` ,
243+ }
244+ }
245+
246+ return hitlOutputs
234247 }
235248
236249 if ( blockType === 'approval' ) {
You can’t perform that action at this time.
0 commit comments