Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansg44 committed Sep 24, 2024
1 parent 83d0fa0 commit bbc0774
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/templates/grdi/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ export default {

for (const inputRow of dh.getTrimmedData(dh.hot)) {
const outputRow = Array(ExportHeaders.size);
outputRow[0] = dh.getMappedField(
const primaryKey = dh.getMappedField(
'sample_name/biosample_accession',
inputRow,
ExportHeaders.get('sample_name/biosample_accession'),
Expand All @@ -580,7 +580,8 @@ export default {
':',
'NCBI_ANTIBIOGRAM'
);
// TODO do not export row if above val is empty?
if (!primaryKey) continue;
outputRow[0] = primaryKey;

// Wide to long logic
const oldOutputMatrixLen = outputMatrix.length;
Expand Down

0 comments on commit bbc0774

Please sign in to comment.