Skip to content

Commit

Permalink
Merge pull request #1373 from alliance-genome/SCRUM-4529
Browse files Browse the repository at this point in the history
SCRUM-4529 more undefined checks
  • Loading branch information
adamgibs authored Nov 13, 2024
2 parents 3a64150 + fcde99d commit 4fa61b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/allelePage/AlleleSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const AlleleSummary = ({allele}) => {
{allele.constructs && allele.constructs.length && (
<CommaSeparatedList>
{allele.constructs.map(construct => (
<DataSourceLink key={construct.id} reference={construct.crossReferenceMap.primary}>
<DataSourceLink key={construct.id} reference={construct.crossReferenceMap?.primary}>
<span dangerouslySetInnerHTML={{__html: construct.name}} />
</DataSourceLink>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/allelePage/AlleleTransgenicConstructs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const AlleleTransgenicConstructs = ({constructs}) => {

<AttributeLabel>Knock-down Targets</AttributeLabel>
<AttributeValue placeholder='None'>
{construct.targetGenes.length && (
{construct.targetGenes?.length && (
<CommaSeparatedGeneList genes={construct.targetGenes} />
)}
</AttributeValue>
Expand Down

0 comments on commit 4fa61b6

Please sign in to comment.