mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
fix fineuploader issue after unmounting react-s3-fineuploader
This commit is contained in:
parent
18898b6f8a
commit
6a04a1a053
@ -163,6 +163,13 @@ var ReactS3FineUploader = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
componentWillUnmount() {
|
||||||
|
// Without this method, fineuploader will continue to try to upload artworks
|
||||||
|
// even though this component is not mounted any more.
|
||||||
|
// Therefore we cancel all uploads
|
||||||
|
this.state.uploader.cancelAll();
|
||||||
|
},
|
||||||
|
|
||||||
propsToConfig() {
|
propsToConfig() {
|
||||||
let objectProperties = this.props.objectProperties;
|
let objectProperties = this.props.objectProperties;
|
||||||
objectProperties.key = this.requestKey;
|
objectProperties.key = this.requestKey;
|
||||||
|
Loading…
Reference in New Issue
Block a user