File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/components/form-slice Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -133,19 +133,21 @@ const FormSectionManager = () => {
133
133
const { control } = useFormContext < APISIXType [ 'Secret' ] > ( ) ;
134
134
const manager = useWatch ( { control, name : 'manager' } ) ;
135
135
return (
136
- < FormSection legend = { t ( 'form.secrets.manager' ) } >
137
- < FormItemSelect
138
- control = { control }
139
- name = "manager"
140
- defaultValue = { APISIX . Secret . options [ 0 ] . shape . manager . value }
141
- data = { APISIX . Secret . options . map ( ( v ) => v . shape . manager . value ) }
142
- />
136
+ < >
137
+ < FormSection legend = { t ( 'form.secrets.manager' ) } >
138
+ < FormItemSelect
139
+ control = { control }
140
+ name = "manager"
141
+ defaultValue = { APISIX . Secret . options [ 0 ] . shape . manager . value }
142
+ data = { APISIX . Secret . options . map ( ( v ) => v . shape . manager . value ) }
143
+ />
144
+ </ FormSection >
143
145
< FormSection legend = { t ( 'form.secrets.managerConfig' ) } >
144
146
{ manager === 'vault' && < VaultSecretForm /> }
145
147
{ manager === 'aws' && < AWSSecretForm /> }
146
148
{ manager === 'gcp' && < GCPSecretForm /> }
147
149
</ FormSection >
148
- </ FormSection >
150
+ </ >
149
151
) ;
150
152
} ;
151
153
You can’t perform that action at this time.
0 commit comments