mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
M #~: Fix array inputs (#1862)
(cherry picked from commit eee9ee983e961836c623e7dffdc0a6ce8cda042b)
This commit is contained in:
parent
0b886172b9
commit
897fefc756
@ -42,10 +42,12 @@ const Steps = createSteps([Template, Provider, BasicConfiguration, Inputs], {
|
||||
})
|
||||
}
|
||||
|
||||
const resolvedInputs = provisionTemplateSelected?.inputs?.map((input) => ({
|
||||
...input,
|
||||
value: `${inputs[input?.name]}`,
|
||||
}))
|
||||
const resolvedInputs = provisionTemplateSelected?.inputs?.map((input) => {
|
||||
const value = inputs[input?.name]
|
||||
const ensuredValue = Array.isArray(value) ? value.join(';') : value
|
||||
|
||||
return { ...input, value: ensuredValue }
|
||||
})
|
||||
|
||||
return {
|
||||
...provisionTemplateSelected,
|
||||
|
Loading…
x
Reference in New Issue
Block a user