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:
parent
69dafc8b2a
commit
4a5c6aa989
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user