1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #-: Clear ramdisk selection properly (#3272)

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit dac6d9dca320702810ca5c3960c685283bc25910)
This commit is contained in:
vichansson 2024-10-21 17:03:07 +03:00 committed by Tino Vázquez
parent 69dafc8b2a
commit 4a5c6aa989
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -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)