From 4925e6a7c1c7e062018b55c1f6d5e188dfcdecba Mon Sep 17 00:00:00 2001 From: Damion Dooley Date: Wed, 31 Jul 2024 09:04:07 -0700 Subject: [PATCH] fix to pac_dexa export to GRDI Biosample. --- web/templates/phac_dexa/export.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/templates/phac_dexa/export.js b/web/templates/phac_dexa/export.js index 1d51a6f8..22456a6e 100644 --- a/web/templates/phac_dexa/export.js +++ b/web/templates/phac_dexa/export.js @@ -117,7 +117,7 @@ export default { // Copy headers to 1st row of new export table const outputMatrix = [[...ExportHeaders.keys()]]; - let normalize = self.initLookup(); + let normalize = self.initLookup(self); const inputMatrix = dh.getTrimmedData(dh.hot); for (const inputRow of inputMatrix) { @@ -345,7 +345,7 @@ export default { * * @return {Object} term normalize lookup table. */ - initLookup: function () { + initLookup: function (self) { let normalize = {}; for (const line of self.LOOKUP.split('\n')) { let [ontology_id, parent, label, normalization] = line