Skip to content

Commit

Permalink
Update packages/docusaurus-theme-classic/src/theme/NavbarItem/DocNavb…
Browse files Browse the repository at this point in the history
…arItem.tsx

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
  • Loading branch information
hamzahamidi and lex111 authored Aug 7, 2021
1 parent f129cf8 commit c113b0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function DocNavbarItem({
{...props}
className={clsx(props.className, {
[activeDocInfimaClassName]:
doc.sidebar && doc.sidebar === activeDoc?.sidebar,
activeDoc?.sidebar && activeDoc.sidebar === doc.sidebar,
})}
activeClassName={activeDocInfimaClassName}
label={staticLabel ?? doc.id}
Expand Down

0 comments on commit c113b0c

Please sign in to comment.