From b72a4b6e2db753814e9df59639a22876e46fb68e Mon Sep 17 00:00:00 2001 From: yaacov Date: Sun, 7 Jul 2024 17:09:06 +0300 Subject: [PATCH] Allow empty luks struct Signed-off-by: yaacov --- .../components/SetLUKSEncryptionPasswordsDetailsItem.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/components/SetLUKSEncryptionPasswordsDetailsItem.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/components/SetLUKSEncryptionPasswordsDetailsItem.tsx index aaf779bc7..4ad01e9f8 100644 --- a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/components/SetLUKSEncryptionPasswordsDetailsItem.tsx +++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/components/SetLUKSEncryptionPasswordsDetailsItem.tsx @@ -16,7 +16,7 @@ export const SetLUKSEncryptionPasswordsDetailsItem: React.FC { const { t } = useForkliftTranslation(); const { showModal } = useModal(); - const luks = resource?.spec?.vms?.[0].luks; + const luksSecretName = resource?.spec?.vms?.[0].luks?.name; const defaultHelpContent = t( 'Specify a list of passphrases for the Linux Unified Key Setup (LUKS)-encrypted devices for the VMs that you want to migrate.', @@ -26,11 +26,11 @@ export const SetLUKSEncryptionPasswordsDetailsItem: React.FC