Skip to content

Commit a82c501

Browse files
committed
fix: correct aria-current condition for nested routes in brand store models
1 parent 0657bb9 commit a82c501

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

static/js/publisher/components/PrimaryNav/PrimaryNav.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ function PrimaryNav(): React.JSX.Element {
104104
component: NavLink,
105105
to: `/admin/${storeId}/models`,
106106
icon: "models",
107-
"aria-current":
108-
location.pathname === `/admin/${storeId}/models`,
107+
"aria-current": location.pathname.includes(
108+
`/admin/${storeId}/models`,
109+
),
109110
}
110111
: null,
111112
brandId

0 commit comments

Comments
 (0)