From ed6b84f78187a6d60dd08de204fb87facb156522 Mon Sep 17 00:00:00 2001 From: Kenneth Bruskiewicz Date: Tue, 10 Dec 2024 11:44:16 -0800 Subject: [PATCH] remove console log --- lib/DataHarmonizer.js | 5 ----- lib/utils/files.js | 2 -- web/index.js | 1 - web/templates/canada_covid19/export.js | 1 - web/templates/phac_dexa/export.js | 2 -- 5 files changed, 11 deletions(-) diff --git a/lib/DataHarmonizer.js b/lib/DataHarmonizer.js index 4c20e496..56c09981 100644 --- a/lib/DataHarmonizer.js +++ b/lib/DataHarmonizer.js @@ -2853,7 +2853,6 @@ class DataHarmonizer { const handsontableInstance = this.hot; const tableData = this.fullData(handsontableInstance); const columnHeaders = handsontableInstance.getColHeader().map(stripDiv); // TODO: use fields() or this.getFlatHeaders()[1]; - console.log(columnHeaders); function createStruct(row) { const structInstance = {}; @@ -2872,8 +2871,6 @@ class DataHarmonizer { } } - console.log(structInstance); - return structInstance; } @@ -2887,8 +2884,6 @@ class DataHarmonizer { } } - console.log(arrayOfStructs); - return arrayOfStructs; } } diff --git a/lib/utils/files.js b/lib/utils/files.js index 1acaa928..eef69423 100644 --- a/lib/utils/files.js +++ b/lib/utils/files.js @@ -242,8 +242,6 @@ function processAndSave( const worksheet = workbook.Sheets[sheetName]; const sheetData = XlsxUtils.sheet_to_json(worksheet, { header: 1 }); - console.log(worksheet, sheetData); - const formattedData = sheetData .map((row) => row.join(delimiter)) .join('\n'); diff --git a/web/index.js b/web/index.js index 82bed922..6a8774d8 100644 --- a/web/index.js +++ b/web/index.js @@ -93,7 +93,6 @@ const main = async function () { }); new Footer(dhFooterRoot, context); - console.log(context); return context; }) .then(async (context) => { diff --git a/web/templates/canada_covid19/export.js b/web/templates/canada_covid19/export.js index 248e6a5a..bc2d3282 100644 --- a/web/templates/canada_covid19/export.js +++ b/web/templates/canada_covid19/export.js @@ -392,7 +392,6 @@ export default { mappedCellVal = 'Virus passage'; } - console.log(field.name,field) // All null values should be converted to "Unknown" if (field.dataStatus) { const standardizedDataStatus = field.dataStatus.map((val) => diff --git a/web/templates/phac_dexa/export.js b/web/templates/phac_dexa/export.js index bb15d641..3474382b 100644 --- a/web/templates/phac_dexa/export.js +++ b/web/templates/phac_dexa/export.js @@ -311,8 +311,6 @@ export default { 'GRDI' ); - console.log(dataRow, ruleSourceFieldNames, RuleDB, sourceFields,sourceFieldNameMap); - // So all rule field values can be referenced in lower case. for (let sourceField of Object.keys(RuleDB)) { if (RuleDB[sourceField])