Commit b093ada7 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov Committed by Matija Obreza
Browse files

Updated Subsets Excel template

- fixed accessions display in subset accessions-list step
parent ce765b08
......@@ -75,7 +75,6 @@ class ListOfAccession extends React.Component<IListOfAccession, any> {
public render() {
const {classes, subset, t} = this.props;
const { subsetAccessions } = this.state;
return (
<div className={ `${ classes.root } m-20 p-20 even-row` }>
......@@ -101,13 +100,14 @@ class ListOfAccession extends React.Component<IListOfAccession, any> {
</div>
<h3>{ t('subsets.dashboard.p.stepper.accessionList.accessionListCount', {count: subsetAccessions && subsetAccessions.length || 0}) }</h3>
{ subsetAccessions &&
<h3>{ t('subsets.dashboard.p.stepper.accessionList.accessionListCount', {count: subset.accessionRefs && subset.accessionRefs.length || 0}) }</h3>
{ subset.accessionRefs &&
<AccessionRefsTable AccessionRefs={ subset.accessionRefs.map((accessionRef) => (
{
doi: accessionRef.accession.doi,
instCode: accessionRef.accession.institute.code,
acceNumb: accessionRef.accession.accessionNumber,
species: accessionRef.accession.taxonomy.species,
genus: accessionRef.accession.taxonomy.genus,
}
)) }/>
......
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