Commit 6c056c35 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed wrong dataset url for creating datasets with the EditMetadataDialog.

parent c98acace
......@@ -526,7 +526,7 @@ function EditMetaDataDialog({...props}) {
let promises = []
let newDatasets = datasets.filter(_dataset => _dataset.dataset_id === _dataset.dataset_name).map(_dataset => _dataset.dataset_name)
newDatasets.forEach(dataset_name => {
promises.push(api.post(`/datasets`, {dataset_name: dataset_name}))
promises.push(api.post(`/datasets/`, {dataset_name: dataset_name}))
})
return Promise.all(promises)
}, [api, datasets])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment