From 6d22e0f352fc0026f09e7884e28ce7b9dc7f76f4 Mon Sep 17 00:00:00 2001 From: Nader Morshed Date: Tue, 22 Jan 2019 18:26:02 -0500 Subject: [PATCH] Fixed post-import opening of database --- src/ui/ModalBoxes/ModalImportBox.jsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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) + } + ) } )