fix: Collections not collapsing

This commit is contained in:
Tom Moor
2020-08-23 12:51:35 -07:00
parent ec38f5d79c
commit 70838918c3

View File

@@ -49,7 +49,7 @@ function SidebarLink({
}, [depth]);
React.useEffect(() => {
if (rest.expanded) {
if (rest.expanded !== undefined) {
setExpanded(rest.expanded);
}
}, [rest.expanded]);