Skip to content

Commit e008ef4

Browse files
vichanssontinova
authored andcommitted
M #-: Clear ramdisk on kernel path clear (#3273)
Signed-off-by: Victor Hansson <[email protected]> (cherry picked from commit 2fe1020)
1 parent 4a5c6aa commit e008ef4

File tree

1 file changed

+3
-1
lines changed
  • src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting

1 file changed

+3
-1
lines changed

src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/ramdiskSchema.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ export const RAMDISK_DS = {
108108
value: (_, form) => {
109109
if (
110110
(form?.getValues(`extra.${RAMDISK_PATH_ENABLED_NAME}`) ||
111-
!form?.getValues(`extra.${KERNEL_PATH_ENABLED_NAME}`)) &&
111+
!form?.getValues(`extra.${KERNEL_PATH_ENABLED_NAME}`) ||
112+
!form?.getValues(`extra.${KERNEL_NAME}`) ||
113+
!form?.getValues(`extra.${KERNEL_DS_NAME}`)) &&
112114
form?.setValue
113115
) {
114116
form?.setValue(`extra.${RAMDISK_DS_NAME}`, undefined)

0 commit comments

Comments
 (0)