Skip to content

Commit aedd925

Browse files
committed
chore
1 parent c023182 commit aedd925

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/components/form-slice/FormPartSecret.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,21 @@ const FormSectionManager = () => {
133133
const { control } = useFormContext<APISIXType['Secret']>();
134134
const manager = useWatch({ control, name: 'manager' });
135135
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>
143145
<FormSection legend={t('form.secrets.managerConfig')}>
144146
{manager === 'vault' && <VaultSecretForm />}
145147
{manager === 'aws' && <AWSSecretForm />}
146148
{manager === 'gcp' && <GCPSecretForm />}
147149
</FormSection>
148-
</FormSection>
150+
</>
149151
);
150152
};
151153

0 commit comments

Comments
 (0)