diff --git a/src/plugins/expression_reveal_image/public/components/reveal_image_component.tsx b/src/plugins/expression_reveal_image/public/components/reveal_image_component.tsx index ce17d47172bcd..56f28a18140a0 100644 --- a/src/plugins/expression_reveal_image/public/components/reveal_image_component.tsx +++ b/src/plugins/expression_reveal_image/public/components/reveal_image_component.tsx @@ -62,13 +62,6 @@ function RevealImageComponent({ } }, [imgRef, handlers]); - useEffect(() => { - handlers.done(); - return () => { - handlers.event({ name: 'destroy' }); - }; - }, [handlers]); - useEffect(() => { updateImageView(); }, [parentNodeDimensions, updateImageView]);