diff --git a/code/lib/components/src/Zoom/ZoomElement.tsx b/code/lib/components/src/Zoom/ZoomElement.tsx index 794fbdef9c4..ba2f4d981cf 100644 --- a/code/lib/components/src/Zoom/ZoomElement.tsx +++ b/code/lib/components/src/Zoom/ZoomElement.tsx @@ -45,7 +45,7 @@ const useMutationObserver = ({ ); useEffect(() => { - if (observer && element?.current) { + if (element?.current) { observer.observe(element.current, options); }