Commit c8745024 authored by Maksym Tishchenko's avatar Maksym Tishchenko
Browse files

Accession Details: added check for collSrc

parent 870ee999
......@@ -231,7 +231,9 @@ class AccessionDetailsPage extends React.Component<IAccessionDetailsPage & WithT
<>
<h3 className="mt-4">{t('accession.details.collSite')}</h3>
<Property title={ t('accession.coll.collSite') } value={ details.coll.collSite } index={ propertyIndex++ }/>
<Property title={ t('accession.coll.collSrc') } value={ t(`accession.collectingSource.${details.coll.collSrc}`) } index={ propertyIndex++ }/>
{ details.coll.collSrc &&
<Property title={ t('accession.coll.collSrc') } value={ t(`accession.collectingSource.${details.coll.collSrc}`) } index={ propertyIndex++ }/>
}
<Property title={ t('accession.coll.collDate') } value={ details.coll.collDate } index={ propertyIndex++ }/>
<Property title={ t('accession.coll.collMissId') } value={ details.coll.collMissId } index={ propertyIndex++ }/>
<Property title={ t('accession.coll.collCode') } value={ details.coll.collCode } index={ propertyIndex++ }/>
......
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