This commit is contained in:
Erik Jan de Wit 2021-10-14 12:30:49 +02:00 committed by GitHub
parent 60347f0234
commit 8f34e4a3e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
import React, { useState } from "react";
import React, { Fragment, useState } from "react";
import FileSaver from "file-saver";
import { useTranslation } from "react-i18next";
import { Controller, useFormContext } from "react-hook-form";
@ -230,7 +230,7 @@ export const SamlKeys = ({ clientId, save }: SamlKeysProps) => {
<DisableConfirm />
<ReGenerateConfirm />
{KEYS.map((attr, index) => (
<>
<Fragment key={attr}>
{openImport && (
<SamlImportKeyDialog
id={clientId}
@ -239,7 +239,6 @@ export const SamlKeys = ({ clientId, save }: SamlKeysProps) => {
/>
)}
<KeySection
key={attr}
keyInfo={keyInfo?.[index]}
attr={attr}
onChanged={setIsChanged}
@ -253,7 +252,7 @@ export const SamlKeys = ({ clientId, save }: SamlKeysProps) => {
}}
onImport={() => setImportOpen(true)}
/>
</>
</Fragment>
))}
</PageSection>
);