|
@@ -155,7 +155,9 @@ module.exports = class Transloadit extends Plugin {
|
|
|
|
|
|
onResult (stepName, result) {
|
|
onResult (stepName, result) {
|
|
const file = this.state.files[result.original_id]
|
|
const file = this.state.files[result.original_id]
|
|
- result.localId = file.id
|
|
|
|
|
|
+ // The `file` may not exist if an import robot was used instead of a file upload.
|
|
|
|
+ result.localId = file ? file.id : null
|
|
|
|
+
|
|
this.updateState({
|
|
this.updateState({
|
|
results: this.state.results.concat(result)
|
|
results: this.state.results.concat(result)
|
|
})
|
|
})
|
|
@@ -208,7 +210,7 @@ module.exports = class Transloadit extends Plugin {
|
|
|
|
|
|
this.core.emit('informer', this.opts.locale.strings.encoding, 'info', 0)
|
|
this.core.emit('informer', this.opts.locale.strings.encoding, 'info', 0)
|
|
return this.assemblyReady.then(() => {
|
|
return this.assemblyReady.then(() => {
|
|
- return this.client.getAssemblyStatus(this.state.assembly.status_endpoint)
|
|
|
|
|
|
+ return this.client.getAssemblyStatus(this.state.assembly.assembly_ssl_url)
|
|
}).then((assembly) => {
|
|
}).then((assembly) => {
|
|
this.updateState({ assembly })
|
|
this.updateState({ assembly })
|
|
|
|
|