[Admin UI] Allow DynamicComponents on OIDC and SAML IDP

Signed-off-by: Réda Housni Alaoui <reda-alaoui@hey.com>
This commit is contained in:
Réda Housni Alaoui 2023-12-19 12:40:54 +01:00 committed by Hynek Mlnařík
parent 175a26f22c
commit 67912209ae

View file

@ -430,19 +430,12 @@ export default function DetailSettings() {
isHorizontal
onSubmit={handleSubmit(save)}
>
{!isOIDC && !isSAML && (
<>
<GeneralSettings create={false} id={alias} />
{providerInfo && (
<DynamicComponents
stringify
properties={providerInfo.properties}
/>
)}
</>
)}
{!isOIDC && !isSAML && <GeneralSettings create={false} id={alias} />}
{isOIDC && <OIDCGeneralSettings />}
{isSAML && <SamlGeneralSettings isAliasReadonly />}
{providerInfo && (
<DynamicComponents stringify properties={providerInfo.properties} />
)}
</FormAccess>
),
},