From dac6d9dca320702810ca5c3960c685283bc25910 Mon Sep 17 00:00:00 2001 From: vichansson Date: Mon, 21 Oct 2024 17:03:07 +0300 Subject: [PATCH] M #-: Clear ramdisk selection properly (#3272) Signed-off-by: Victor Hansson --- .../Steps/ExtraConfiguration/booting/ramdiskSchema.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/ramdiskSchema.js b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/ramdiskSchema.js index 513de03397..ffe048455c 100644 --- a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/ramdiskSchema.js +++ b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/ramdiskSchema.js @@ -107,7 +107,8 @@ export const RAMDISK_DS = { ), value: (_, form) => { if ( - form?.getValues(`extra.${RAMDISK_PATH_ENABLED_NAME}`) && + (form?.getValues(`extra.${RAMDISK_PATH_ENABLED_NAME}`) || + !form?.getValues(`extra.${KERNEL_PATH_ENABLED_NAME}`)) && form?.setValue ) { form?.setValue(`extra.${RAMDISK_DS_NAME}`, undefined)