Skip to content

Commit

Permalink
Chore: return null if no Annotation component found
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmeeedMostafa committed Feb 9, 2023
1 parent f929581 commit 2e6a0a9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const MemoizedAnnotation = ({
selectionsIds,
}) => {
const AnnotationComponent = ANNOTATION_NAMES_TO_COMPONENT[annotation.name];
if (!AnnotationComponent) return null;

return (
<AnnotationComponent
Expand Down

0 comments on commit 2e6a0a9

Please sign in to comment.