From 07098c3f5a41978b2d6fc07e2da4716db6ca1d7e Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Thu, 24 Feb 2022 12:44:40 +0100 Subject: [PATCH] Fix realm settings events tests (#2144) --- .../key-providers/rsa-generated/RSAGeneratedForm.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/realm-settings/key-providers/rsa-generated/RSAGeneratedForm.tsx b/src/realm-settings/key-providers/rsa-generated/RSAGeneratedForm.tsx index 003cc4d548..cb382abe1e 100644 --- a/src/realm-settings/key-providers/rsa-generated/RSAGeneratedForm.tsx +++ b/src/realm-settings/key-providers/rsa-generated/RSAGeneratedForm.tsx @@ -73,16 +73,16 @@ export const RSAGeneratedForm = ({ serverInfo.componentTypes?.[KEY_PROVIDER_TYPE] ?? []; const rsaGeneratedKeySizeOptions = - allComponentTypes[6].properties[3].options!; + allComponentTypes[6].properties[3].options ?? []; const rsaGeneratedAlgorithmOptions = - allComponentTypes[6].properties[4].options!; + allComponentTypes[6].properties[4].options ?? []; const rsaEncGeneratedKeySizeOptions = - allComponentTypes[5].properties[3].options!; + allComponentTypes[5].properties[3].options ?? []; const rsaEncGeneratedAlgorithmOptions = - allComponentTypes[5].properties[4].options!; + allComponentTypes[5].properties[4].options ?? []; const save = async (component: ComponentRepresentation) => { try {