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

(cherry picked from commit 3250528bef)
This commit is contained in:
Sergio Betanzos authored and Tino Vazquez committed 2021-11-26 13:14:55 +01:00
1 parent 016f9ae3f0
commit 268a01937d
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({