Skip to content

Commit

Permalink
fix: unmount scanAreas section
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 11, 2024
1 parent f0a3b28 commit 49ec133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/layout/drawer/Section.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Accordion
Expand Down

0 comments on commit 49ec133

Please sign in to comment.