Skip to content

Commit

Permalink
M #-: Clear ramdisk selection properly (#3272)
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
  • Loading branch information
vichansson authored Oct 21, 2024
1 parent f6e6372 commit dac6d9d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dac6d9d

Please sign in to comment.