diff --git a/src/ui/ModalBoxes/ModalImportBox.jsx b/src/ui/ModalBoxes/ModalImportBox.jsx index 4b67f76..5b15a77 100644 --- a/src/ui/ModalBoxes/ModalImportBox.jsx +++ b/src/ui/ModalBoxes/ModalImportBox.jsx @@ -232,11 +232,18 @@ class ModalImportBox extends React.Component { return } - this.setState({ - child: null, - camvFileName: out_path, - running: false, - }, this.runImport.bind(this)) + console.log(out_path) + + this.setState( + { + child: null, + camvFileName: out_path, + running: false, + }, + () => { + this.runImport(out_path) + } + ) } )