Skip to content

Commit

Permalink
Fixed post-import opening of database
Browse files Browse the repository at this point in the history
  • Loading branch information
naderm committed Jan 22, 2019
1 parent a9a7668 commit 6d22e0f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/ui/ModalBoxes/ModalImportBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
)
}
)

Expand Down

0 comments on commit 6d22e0f

Please sign in to comment.