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