Skip to content

Commit

Permalink
fix covariate check
Browse files Browse the repository at this point in the history
  • Loading branch information
phyllip3 committed Nov 28, 2022
1 parent c0e34f2 commit 38ac336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/queueProcessor/services/xlsxExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ function settingsSheet(state) {
if (cohorts.length) {
cohorts.forEach((cohort) => {
const covariates = state.covariates[cohort];
Array.isArray(covariates)
? sheet.push([cohort, state.covariates[cohort].join(', ')])
: sheet.push([cohort, state.covariates[cohort]]);
Array.isArray(covariates) && covariates.length
? sheet.push([cohort, covariates.join(', ')])
: sheet.push([cohort, covariates]);
});
} else {
sheet.push(['No cohorts available']);
Expand Down

0 comments on commit 38ac336

Please sign in to comment.