Not access taxon in SuggestionsResult if none

This commit is contained in:
Johannes Klein
2025-04-16 20:43:31 +02:00
committed by GitHub
parent 332f419c98
commit 575db8294d

View File

@@ -44,6 +44,10 @@ const SuggestionsResult = ( {
}
}, [forcedHeight] );
if ( !taxon ) {
return null;
}
const accessibleName = accessibleTaxonName( taxon, currentUser, t );
// A representative photo is dependant on the actual image that was scored by computer vision