Merge pull request #764 from metamaps/fix/import-dialog-box
fix file upload box
This commit is contained in:
commit
14ea18a967
1 changed files with 7 additions and 6 deletions
|
@ -15,12 +15,13 @@ class ImportDialogBox extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleFile = (files, e) => {
|
handleFile = (files, e) => {
|
||||||
// for some reason it uploads twice, so we need this debouncer
|
// // for some reason it uploads twice, so we need this debouncer
|
||||||
// eslint-disable-next-line no-return-assign
|
// // eslint-disable-next-line no-return-assign
|
||||||
this.debouncer = this.debouncer || window.setTimeout(() => this.debouncer = null, 10)
|
// this.debouncer = this.debouncer || window.setTimeout(() => this.debouncer = null, 10)
|
||||||
if (!this.debouncer) {
|
// if (!this.debouncer) {
|
||||||
this.props.onFileAdded(files[0])
|
// this.props.onFileAdded(files[0])
|
||||||
}
|
// }
|
||||||
|
this.props.onFileAdded(files[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleShowInstructions = e => {
|
toggleShowInstructions = e => {
|
||||||
|
|
Loading…
Reference in a new issue