@campxdev/react-blueprint 2.1.12 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "2.1.12",
3
+ "version": "2.2.0",
4
4
  "description": "React UI component library for CampX applications",
5
5
  "author": "CampX",
6
6
  "license": "MIT",
@@ -122,8 +122,8 @@ export const useSidebarNavigation = (
122
122
  useEffect(() => {
123
123
  const currentPathArray = window.location.pathname.split('/');
124
124
 
125
- if (currentPathArray.length > 2) {
126
- currentPathArray.splice(0, 2);
125
+ if (currentPathArray.length > 3) {
126
+ currentPathArray.splice(0, 3);
127
127
  currentPathArray.pop();
128
128
  }
129
129