Ensure correct options are displayed for 'Archive format' (#19914)

This commit is contained in:
Jon Koops 2023-04-24 17:33:15 +02:00 committed by GitHub
parent 5cfa4bedfd
commit 3026d8fad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ export const KeyForm = ({
const { cryptoInfo } = useServerInfo(); const { cryptoInfo } = useServerInfo();
const supportedKeystoreTypes = [ const supportedKeystoreTypes = [
...(cryptoInfo?.supportedKeystoreTypes ?? []), ...(cryptoInfo?.supportedKeystoreTypes ?? []),
...(hasPem ? CERT_PEM : []), ...(hasPem ? [CERT_PEM] : []),
]; ];
return ( return (
@ -99,6 +99,7 @@ export const KeyForm = ({
variant={SelectVariant.single} variant={SelectVariant.single}
aria-label={t("archiveFormat")} aria-label={t("archiveFormat")}
isOpen={openArchiveFormat} isOpen={openArchiveFormat}
menuAppendTo="parent"
> >
{supportedKeystoreTypes.map((option) => ( {supportedKeystoreTypes.map((option) => (
<SelectOption <SelectOption