diff --git a/src/components/layout/drawer/Section.jsx b/src/components/layout/drawer/Section.jsx index 3b52bf2bb..8daa9dc86 100644 --- a/src/components/layout/drawer/Section.jsx +++ b/src/components/layout/drawer/Section.jsx @@ -47,14 +47,14 @@ const DrawerSection = ({ category }) => { ) React.useEffect(() => { - if (drawer) { + if (drawer && category !== 'scanAreas') { const timer = setTimeout(() => { setUnmountOnExit(false) }, 250) return () => clearTimeout(timer) } setUnmountOnExit(true) - }, [drawer]) + }, [drawer, category]) return (