File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
arroyo-console/src/routes/connections Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,12 @@ function SelectWidget({
162
162
value : string ;
163
163
onChange : ( e : React . ChangeEvent < any > ) => void ;
164
164
} ) {
165
+ useEffect ( ( ) => {
166
+ if ( ! value ) {
167
+ onChange ( { target : { name : path , value : options [ 0 ] . value } } ) ;
168
+ }
169
+ } ) ;
170
+
165
171
return (
166
172
< FormControl isRequired = { required } >
167
173
{ title && < FormLabel > { title } </ FormLabel > }
@@ -470,7 +476,6 @@ export function FormInner({
470
476
key = { key }
471
477
title = { property . title || key }
472
478
description = { property . description }
473
- placeholder = "Select an option"
474
479
required = { schema . required ?. includes ( key ) }
475
480
options = { property . enum . map ( value => ( {
476
481
value : value ! . toString ( ) ,
@@ -551,7 +556,6 @@ export function FormInner({
551
556
< Stack p = { 4 } >
552
557
< SelectWidget
553
558
path = { typeKey }
554
- placeholder = "Select an option"
555
559
description = { property . description }
556
560
required = { schema . required ?. includes ( key ) }
557
561
options = { property . oneOf . map ( oneOf => ( {
You can’t perform that action at this time.
0 commit comments