Skip to content

Commit

Permalink
Merge pull request #48 from CLOSER-Cohorts/issue-42-handle-non-presen…
Browse files Browse the repository at this point in the history
…t-dv-data

issue-42-handle-non-present-dv-data
  • Loading branch information
ollylucl authored Aug 27, 2024
2 parents fcfdbc0 + 47a1095 commit 3d55829
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ <h1>Generate text mappings files</h1>
+ (!!suffix[columnName] ? suffix[columnName] : "")))

const lowerCaseRowValues = rowValues.map(rowValue => rowValue.toLowerCase())

if (!(lowerCaseRowValues.includes("n/a") || lowerCaseRowValues.includes("na") || lowerCaseRowValues.includes("derived") || lowerCaseRowValues.includes("")))

if (!(lowerCaseRowValues.includes("n/a")
|| lowerCaseRowValues.includes("na")
|| lowerCaseRowValues.includes("derived")
|| lowerCaseRowValues.includes("undefined")
|| lowerCaseRowValues.includes("")))
fileData = fileData + rowValues.join("\t") + "\n"
})

Expand Down

0 comments on commit 3d55829

Please sign in to comment.