Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Website
Commits
4d81d910
Commit
4d81d910
authored
Jan 27, 2019
by
Oleksii Savran
Committed by
Viacheslav Pavlov
Jan 28, 2019
Browse files
Bug: renders donor institute name & number when null
parent
92d27aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/accessions/ui/DisplayPage.tsx
View file @
4d81d910
...
...
@@ -224,15 +224,18 @@ class BrowsePage extends React.Component<IBrowsePageProps, any> {
{
t
(
`accessions.common.mlsStatus.
${
accession
.
mlsStatus
}
`
)
}
<
AuditedInfo
info
=
{
auditAccession
.
mlsStatus
}
/>
</
PropertiesItem
>
<
PropertiesItem
title
=
{
t
(
'
accessions.public.p.display.donorInstitute
'
)
}
>
{
accession
.
donorCode
}
<
AuditedInfo
info
=
{
auditAccession
.
donorCode
}
/>
</
PropertiesItem
>
<
PropertiesItem
title
=
{
t
(
'
accessions.public.p.display.donorAccessionNumber
'
)
}
>
{
accession
.
donorNumb
}
<
AuditedInfo
info
=
{
auditAccession
.
donorNumb
}
/>
</
PropertiesItem
>
{
accession
.
donorCode
&&
<
PropertiesItem
title
=
{
t
(
'
accessions.public.p.display.donorInstitute
'
)
}
>
{
accession
.
donorCode
}
<
AuditedInfo
info
=
{
auditAccession
.
donorCode
}
/>
</
PropertiesItem
>
}
{
accession
.
donorNumb
&&
<
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
.
map
((
duplSite
,
i
)
=>
(
<
div
key
=
{
duplSite
}
style
=
{
{
width
:
'
100%
'
,
paddingTop
:
'
.25rem
'
}
}
>
{
duplSite
}
</
div
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment