fix: collapse siblings when first category is selected (#7786)

fix: not collapsing when first category is selected
This commit is contained in:
whiteand 2022-07-15 11:54:09 +03:00 committed by GitHub
parent 7f40350d6e
commit cf134a5308
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ export default function DocSidebarItemCategory({
useEffect(() => {
if (
collapsible &&
expandedItem &&
expandedItem != null &&
expandedItem !== index &&
autoCollapseCategories
) {