Commit 4d81d910 authored by Oleksii Savran's avatar Oleksii Savran Committed by Viacheslav Pavlov
Browse files

Bug: renders donor institute name & number when null

parent 92d27aa4
...@@ -224,15 +224,18 @@ class BrowsePage extends React.Component<IBrowsePageProps, any> { ...@@ -224,15 +224,18 @@ class BrowsePage extends React.Component<IBrowsePageProps, any> {
{ t(`accessions.common.mlsStatus.${accession.mlsStatus}`) } { t(`accessions.common.mlsStatus.${accession.mlsStatus}`) }
<AuditedInfo info={ auditAccession.mlsStatus }/> <AuditedInfo info={ auditAccession.mlsStatus }/>
</PropertiesItem> </PropertiesItem>
<PropertiesItem title={ t('accessions.public.p.display.donorInstitute') }> { accession.donorCode &&
{ accession.donorCode } <PropertiesItem title={ t('accessions.public.p.display.donorInstitute') }>
<AuditedInfo info={ auditAccession.donorCode }/> { accession.donorCode }
</PropertiesItem> <AuditedInfo info={ auditAccession.donorCode }/>
<PropertiesItem title={ t('accessions.public.p.display.donorAccessionNumber') }> </PropertiesItem>
{ accession.donorNumb } }
<AuditedInfo info={ auditAccession.donorNumb }/> { accession.donorNumb &&
</PropertiesItem> <PropertiesItem title={ t('accessions.public.p.display.donorAccessionNumber') }>
{ accession.donorNumb }
<AuditedInfo info={ auditAccession.donorNumb }/>
</PropertiesItem>
}
{ accession.duplSite && accession.duplSite.length > 0 && <PropertiesItem title={ t('accessions.public.p.display.safetyDuplicationInstitute') }> { accession.duplSite && accession.duplSite.length > 0 && <PropertiesItem title={ t('accessions.public.p.display.safetyDuplicationInstitute') }>
{ accession.duplSite.map((duplSite, i) => ( { accession.duplSite.map((duplSite, i) => (
<div key={ duplSite } style={ {width: '100%', paddingTop: '.25rem'} }>{ duplSite }</div> <div key={ duplSite } style={ {width: '100%', paddingTop: '.25rem'} }>{ duplSite }</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment