Skip to content

Commit

Permalink
Update start date to validate null add nalabel
Browse files Browse the repository at this point in the history
Update clinical status nalabel
  • Loading branch information
remo87 committed Apr 11, 2022
1 parent a073c83 commit 7bec5d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sections/evidence/Chembl/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,16 @@ const columns = [
<>{clinicalStatus}</>
)
) : (
'N/A'
naLabel
);
},
},
{
id: 'studyStartDate',
label: 'Start Date',
numeric: true,
renderCell: ({ studyStartDate }) => new Date(studyStartDate).getFullYear(),
renderCell: ({ studyStartDate }) =>
studyStartDate ? new Date(studyStartDate).getFullYear() : naLabel,
},
{
label: 'Source',
Expand Down

0 comments on commit 7bec5d7

Please sign in to comment.