We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b76780 + b3174b6 commit f3d1b76Copy full SHA for f3d1b76
ui/client/src/components/agentic-ai/workspace/FieldPopulation.tsx
@@ -361,8 +361,9 @@ export const FieldPopulation: React.FC<FieldPopulationProps> = ({
361
const rawResults = responseData[fieldMapping] || [];
362
363
// Handle automatic selection (non-array result)
364
+ // For automatic population, the result is typically a single object (not an array)
365
if (populateHint.selection_type == 'automatic' && !Array.isArray(rawResults)) {
- onPopulateResult(fieldName, rawResults, false);
366
+ onPopulateResult(fieldName, [rawResults], false);
367
return;
368
}
369
0 commit comments