Skip to content

Commit

Permalink
hot-fix for export dialog error #48
Browse files Browse the repository at this point in the history
Thanks to @mpgn
  • Loading branch information
ehrishirajsharma authored Jul 19, 2019
1 parent 7e47c8d commit e2809a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/ExportDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ class ExportDialog extends React.PureComponent<Props> {
fileName => {
try {
if (fileName !== undefined) {
fs.writeFile(fileName, JSON.stringify(this.state));
fs.writeFile(fileName, JSON.stringify(this.state), function (err, result) {
if (err) console.log('error', err);
});

dialog.showMessageBox(
{
Expand Down

0 comments on commit e2809a1

Please sign in to comment.