From 8180a8cc7149b9a57644a6b0748eed330c2d5c84 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Fri, 14 Oct 2016 14:29:16 +0800 Subject: [PATCH] fix file upload box --- frontend/src/components/ImportDialogBox.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/ImportDialogBox.js b/frontend/src/components/ImportDialogBox.js index bfb60235..43825421 100644 --- a/frontend/src/components/ImportDialogBox.js +++ b/frontend/src/components/ImportDialogBox.js @@ -15,12 +15,13 @@ class ImportDialogBox extends Component { } handleFile = (files, e) => { - // for some reason it uploads twice, so we need this debouncer - // eslint-disable-next-line no-return-assign - this.debouncer = this.debouncer || window.setTimeout(() => this.debouncer = null, 10) - if (!this.debouncer) { - this.props.onFileAdded(files[0]) - } + // // for some reason it uploads twice, so we need this debouncer + // // eslint-disable-next-line no-return-assign + // this.debouncer = this.debouncer || window.setTimeout(() => this.debouncer = null, 10) + // if (!this.debouncer) { + // this.props.onFileAdded(files[0]) + // } + this.props.onFileAdded(files[0]) } toggleShowInstructions = e => {