Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #112 from KPMP/develop
Browse files Browse the repository at this point in the history
Release v5.3
  • Loading branch information
rlreamy authored Sep 8, 2022
2 parents aac2738 + 0cf9680 commit 7207014
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,18 @@ const filesTableModel = [
name: 'Participant ID',
id: 'cases.samples.participant_id',
th: () => <Th>Participant ID</Th>,
td: ({ node }) => <Td>{node.cases.samples.participant_id ?
node.cases.samples.participant_id.join(", ") : '--'}</Td>,
td: ({ node }) => {
if (node.cases.samples.participant_id) {
if (node.cases.samples.participant_id.length > 1) {
return <Td>Multiple participants</Td>;
}
else {
return <Td>{node.cases.samples.participant_id[0]}</Td>;
}
} else {
return '--';
}
},
sortable: true,
downloadable: true,
hidden: false,
Expand Down

0 comments on commit 7207014

Please sign in to comment.