Skip to content

Commit f3d1b76

Browse files
authored
Merge pull request #71 from redhat-community-ai-tools/A2A-card-not-working
A2A Card | Bugfix (small change)
2 parents 6b76780 + b3174b6 commit f3d1b76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/client/src/components/agentic-ai/workspace/FieldPopulation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,9 @@ export const FieldPopulation: React.FC<FieldPopulationProps> = ({
361361
const rawResults = responseData[fieldMapping] || [];
362362

363363
// Handle automatic selection (non-array result)
364+
// For automatic population, the result is typically a single object (not an array)
364365
if (populateHint.selection_type == 'automatic' && !Array.isArray(rawResults)) {
365-
onPopulateResult(fieldName, rawResults, false);
366+
onPopulateResult(fieldName, [rawResults], false);
366367
return;
367368
}
368369

0 commit comments

Comments
 (0)