diff --git a/lib/DataHarmonizer.js b/lib/DataHarmonizer.js index bada969b..68c52b00 100644 --- a/lib/DataHarmonizer.js +++ b/lib/DataHarmonizer.js @@ -375,12 +375,10 @@ class DataHarmonizer { async openFile(file) { try { let contentBuffer = await readFileAsync(file); - if (file.type === "application/json") { + if (file.type === 'application/json') { console.log(JSON.parse(contentBuffer)); this.loadDataObjects(JSON.parse(contentBuffer)); - } - else - this.loadSpreadsheetData(contentBuffer); + } else this.loadSpreadsheetData(contentBuffer); } catch (err) { console.log(err); }