Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed May 26, 2024
1 parent be3d6e7 commit dea46fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/theme/Navbar/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export default function NavbarContent(): JSX.Element {
if (typeof document !== "undefined") {
for (let item of items) {
if (
item.activeBaseRegex && item.modules &&
item.activeBaseRegex &&
item.modules &&
new RegExp(item.activeBaseRegex).test(document.location.pathname)
) {
leftItems = item.modules;
Expand Down

0 comments on commit dea46fd

Please sign in to comment.