diff --git a/src/fireedge/src/client/containers/Datastores/Create.js b/src/fireedge/src/client/containers/Datastores/Create.js index 6f812b285c9..94a9036273d 100644 --- a/src/fireedge/src/client/containers/Datastores/Create.js +++ b/src/fireedge/src/client/containers/Datastores/Create.js @@ -38,10 +38,11 @@ function CreateDatastore() { const [allocate] = useAllocateDatastoreMutation() const { enqueueSuccess } = useGeneralApi() - const onSubmit = async ({ template }) => { + const onSubmit = async ({ template, cluster }) => { try { const newTemplateId = await allocate({ template: jsonToXml(template), + cluster, }).unwrap() history.push(PATH.STORAGE.DATASTORES.LIST) enqueueSuccess(`Datastore created - #${newTemplateId}`)