Wrap SamlKeysDialog in FormProvider (#3975)

This commit is contained in:
Jon Koops 2022-12-12 00:46:19 +01:00 committed by GitHub
parent 9ac61efab4
commit 6f43a8d9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,6 +153,7 @@ export const SamlKeysDialog = ({
</Button>,
]}
>
<FormProvider {...form}>
<Form isHorizontal>
<FormGroup
label={t("selectMethod")}
@ -210,11 +211,8 @@ export const SamlKeysDialog = ({
</FormGroup>
</Form>
)}
{type && (
<FormProvider {...form}>
<KeyForm useFile />
{type && <KeyForm useFile />}
</FormProvider>
)}
</Modal>
);
};