mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-12 09:17:41 +03:00
F OpenNebula/one#5422: Fix minor (#1432)
This commit is contained in:
parent
461b91a487
commit
5360d68ecc
@ -74,10 +74,11 @@ export const FIELDS = vmTemplate => {
|
||||
return disks?.map(SIZE)
|
||||
}
|
||||
|
||||
export const SCHEMA = yup.object({
|
||||
DISK: yup
|
||||
.array(yup.object({
|
||||
SIZE: SIZE().validation
|
||||
}))
|
||||
.transform(DISK => [DISK].flat().filter(Boolean))
|
||||
})
|
||||
export const SCHEMA = yup
|
||||
.object({
|
||||
DISK: yup.array(yup.object({ SIZE: SIZE().validation }))
|
||||
})
|
||||
.transform(({ DISK, ...rest }) => ({
|
||||
...rest,
|
||||
DISK: [DISK].flat().filter(Boolean)
|
||||
}))
|
||||
|
@ -46,8 +46,6 @@ function InstantiateVmTemplate () {
|
||||
})
|
||||
)
|
||||
|
||||
console.log(formData)
|
||||
|
||||
history.push(templateId ? PATH.TEMPLATE.VMS.LIST : PATH.INSTANCE.VMS.LIST)
|
||||
enqueueInfo(`VM Template instantiated x${instances} - ${NAME}`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user