docs: fix category not opening in api reference from algolia search (#8690)

This commit is contained in:
Shahed Nasser
2024-08-21 11:52:13 +02:00
committed by GitHub
parent a7d03ec562
commit 9734ad1e51
3 changed files with 3 additions and 2 deletions
@@ -47,7 +47,7 @@ export const SidebarItemCategory = ({
if (isActive && !open) {
setOpen(true)
}
}, [isChildrenActive])
}, [isChildrenActive, item.children])
useEffect(() => {
if (!persistState) {