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>
(cherry picked from commit 2fe1020)
  • Loading branch information
vichansson authored and tinova committed Oct 22, 2024
1 parent 4a5c6aa commit e008ef4
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 e008ef4

Please sign in to comment.