Commit 629de6de authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed missing upload command.

parent 4fd2ff9f
......@@ -307,7 +307,7 @@ class Api {
async getUploadCommand() {
this.onStartLoading()
this.swaggerPromise
return this.swaggerPromise
.then(client => client.apis.uploads.get_upload_command())
.catch(this.handleApiError)
.then(response => response.body.upload_command)
......
......@@ -77,7 +77,9 @@ class Uploads extends React.Component {
componentDidMount() {
this.update()
this.props.api.getUploadCommand()
.then(command => this.setState({uploadCommand: command}))
.then(command => {
this.setState({uploadCommand: command})
})
.catch(error => {
this.props.raiseError(error)
})
......
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