Skip to content

Commit

Permalink
M #-: Clear ramdisk on kernel path clear (#3273)
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 22, 2024
1 parent dac6d9d commit 2fe1020
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export const RAMDISK_DS = {
value: (_, form) => {
if (
(form?.getValues(`extra.${RAMDISK_PATH_ENABLED_NAME}`) ||
!form?.getValues(`extra.${KERNEL_PATH_ENABLED_NAME}`)) &&
!form?.getValues(`extra.${KERNEL_PATH_ENABLED_NAME}`) ||
!form?.getValues(`extra.${KERNEL_NAME}`) ||
!form?.getValues(`extra.${KERNEL_DS_NAME}`)) &&
form?.setValue
) {
form?.setValue(`extra.${RAMDISK_DS_NAME}`, undefined)
Expand Down

0 comments on commit 2fe1020

Please sign in to comment.