mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-06 12:58:18 +03:00
M #~: lint fix (#2382)
This commit is contained in:
parent
384c4e5ad4
commit
4b3d4697a4
@ -214,13 +214,15 @@ export const USER_INPUTS_SCHEMA = object({
|
||||
.afterSubmit((userInputs, { context }) => {
|
||||
const capacityInputs = userInputsToArray(context?.general?.MODIFICATION, {
|
||||
filterCapacityInputs: false,
|
||||
}).map(({ name, ...userInput }) => ({
|
||||
name,
|
||||
...userInput,
|
||||
// set default value from MEMORY, CPU and VCPU fields
|
||||
default: context.general?.[name],
|
||||
...(['MEMORY', 'CPU'].includes(name) && { mandatory: true }),
|
||||
})).filter((capacityInput) => capacityInput.type)
|
||||
})
|
||||
.map(({ name, ...userInput }) => ({
|
||||
name,
|
||||
...userInput,
|
||||
// set default value from MEMORY, CPU and VCPU fields
|
||||
default: context.general?.[name],
|
||||
...(['MEMORY', 'CPU'].includes(name) && { mandatory: true }),
|
||||
}))
|
||||
.filter((capacityInput) => capacityInput.type)
|
||||
|
||||
return userInputsToObject([...capacityInputs, ...userInputs])
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user