Skip to content

Commit de6ee8b

Browse files
committed
Fix hitl tag dropdown
1 parent f45c3f2 commit de6ee8b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

apps/sim/lib/workflows/blocks/block-outputs.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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') {

0 commit comments

Comments
 (0)