diff --git a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/placement/schema.js b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/placement/schema.js index 6866e71bc5..ce6d5a2237 100644 --- a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/placement/schema.js +++ b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/placement/schema.js @@ -69,6 +69,9 @@ const HOST_REQ_FIELD = (isUpdate, modifiedFields, instantiate) => ({ watcher: (dependencies, { formContext }) => { const [hypervisor, clusterHostTable, clusterHostType] = dependencies + if (!hypervisor) { + return + } const tableType = clusterHostType?.includes(T.Cluster) ? 'CLUSTER' : 'HOST' const regexPattern = new RegExp(`\\b${tableType}_ID\\s*=\\s*(\\d+)`)