remove debug
This commit is contained in:
parent
921f89b076
commit
45209c5a91
1 changed files with 0 additions and 4 deletions
|
@ -34,8 +34,6 @@ class FileExporter extends React.PureComponent {
|
|||
const { onFileCreated } = this.props;
|
||||
fs.writeFile(filename, data, err => {
|
||||
if (err) throw err;
|
||||
//Debug
|
||||
console.log('The file has been saved!', filename);
|
||||
// Do something after creation
|
||||
onFileCreated && onFileCreated(filename);
|
||||
});
|
||||
|
@ -57,8 +55,6 @@ class FileExporter extends React.PureComponent {
|
|||
const format = path.extname(filename).replace(/\./g, '');
|
||||
// Parse data to string with the chosen format
|
||||
const parsed = parseData(data, format);
|
||||
// Debug
|
||||
console.log(parsed, data, format);
|
||||
// Write file
|
||||
parsed && this.handleFileCreation(filename, parsed);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue