diff --git a/arroyo-console/src/routes/connections/JsonForm.tsx b/arroyo-console/src/routes/connections/JsonForm.tsx index 11731ba93..61fba0778 100644 --- a/arroyo-console/src/routes/connections/JsonForm.tsx +++ b/arroyo-console/src/routes/connections/JsonForm.tsx @@ -162,6 +162,12 @@ function SelectWidget({ value: string; onChange: (e: React.ChangeEvent) => void; }) { + useEffect(() => { + if (!value) { + onChange({ target: { name: path, value: options[0].value } }); + } + }); + return ( {title && {title}} @@ -470,7 +476,6 @@ export function FormInner({ key={key} title={property.title || key} description={property.description} - placeholder="Select an option" required={schema.required?.includes(key)} options={property.enum.map(value => ({ value: value!.toString(), @@ -551,7 +556,6 @@ export function FormInner({ ({