Skip to content

Commit

Permalink
[FIX] Admin sidebar navigation (#26958)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Sep 28, 2022
1 parent 3a2b6da commit a2595bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const SidebarNavigationItem: FC<SidebarNavigationItemProps> = ({
}) => {
const params = useMemo(() => ({ group: pathGroup }), [pathGroup]);
const path = useRoutePath(pathSection, params);
const isActive = path === currentPath || false;
const isActive = currentPath?.includes(path as string);

if (permissionGranted === false || (typeof permissionGranted === 'function' && !permissionGranted())) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23023,7 +23023,7 @@ __metadata:
optional: true
bin:
lessc: ./bin/lessc
checksum: c9b8c0e865427112c48a9cac36f14964e130577743c29d56a6d93b5812b70846b04ccaa364acf1e8d75cee3855215ec0a2d8d9de569c80e774f10b6245f39b7d
checksum: 61568b56b5289fdcfe3d51baf3c13e7db7140022c0a37ef0ae343169f0de927a4b4f4272bc10c20101796e8ee79e934e024051321bba93b3ae071f734309bd98
languageName: node
linkType: hard

Expand Down

0 comments on commit a2595bb

Please sign in to comment.