1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

F : Make optional the step to select template ()

This commit is contained in:
Sergio Betanzos 2021-11-26 13:08:51 +01:00 committed by GitHub
parent 8892053268
commit 3250528bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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({