Skip to content

Commit

Permalink
fix: show TaxonDetail w/o crash for offline vision suggestion w/ no l…
Browse files Browse the repository at this point in the history
…ocal taxon
  • Loading branch information
kueda committed Nov 15, 2024
1 parent 6305ca9 commit 0c664ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/TaxonDetails/TaxonDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ const TaxonDetails = ( ): Node => {
return <Body1 className="mx-3">{ t( "Something-went-wrong" ) }</Body1>;
}

if ( !taxon ) return null;

return (
<View className="mx-3">
<EstablishmentMeans taxon={taxon} />
Expand Down

0 comments on commit 0c664ed

Please sign in to comment.