diff --git a/packages/react-filerobot-image-editor/src/components/Layers/DesignLayer/AnnotationNodes/MemoizedAnnotation.jsx b/packages/react-filerobot-image-editor/src/components/Layers/DesignLayer/AnnotationNodes/MemoizedAnnotation.jsx index bc779114..f2d78e01 100644 --- a/packages/react-filerobot-image-editor/src/components/Layers/DesignLayer/AnnotationNodes/MemoizedAnnotation.jsx +++ b/packages/react-filerobot-image-editor/src/components/Layers/DesignLayer/AnnotationNodes/MemoizedAnnotation.jsx @@ -11,6 +11,7 @@ const MemoizedAnnotation = ({ selectionsIds, }) => { const AnnotationComponent = ANNOTATION_NAMES_TO_COMPONENT[annotation.name]; + if (!AnnotationComponent) return null; return (