F #5637: Make optional the step to select template (#1622)

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2021-11-26 13:08:51 +01:00
1 parent 8892053268
commit 3250528bef
1 file changed
+5 -1
@@ -20,7 +20,11 @@ import { jsonToXml } from 'client/models/Helper'
import { createSteps } from 'client/utils'
const Steps = createSteps(
[VmTemplatesTable, BasicConfiguration, ExtraConfiguration],
vmTemplate => [
!vmTemplate?.ID && VmTemplatesTable,
BasicConfiguration,
ExtraConfiguration
].filter(Boolean),
{
transformInitialValue: (vmTemplate, schema) => ({
...schema.cast({