Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
cfba0ba7
Commit
cfba0ba7
authored
Mar 17, 2022
by
Markus Scheidgen
Browse files
Fixed unsuccessful redirect on dataset creates in the UI.
#769
parent
e87ecfdb
Pipeline
#126642
passed with stages
in 32 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/uploads/EditMetaDataDialog.js
View file @
cfba0ba7
...
...
@@ -338,7 +338,7 @@ function EditMetaDataDialog({...props}) {
},
[])
const
createNewDatasets
=
useCallback
(()
=>
{
const
promises
=
actions
.
filter
(
action
=>
action
.
create_dataset
).
map
(
action
=>
api
.
post
(
`/datasets`
,
{
dataset_name
:
action
.
create_dataset
}))
const
promises
=
actions
.
filter
(
action
=>
action
.
create_dataset
).
map
(
action
=>
api
.
post
(
`/datasets
/
`
,
{
dataset_name
:
action
.
create_dataset
}))
return
Promise
.
all
(
promises
)
},
[
api
,
actions
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment