You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ...// Maximum Deep level of render Nav menu (Start with 0)constlimitDeepLevel=3;// ...constgetDeepNavigation=(navItemGroup,navLinkGroup,pathname,deepLevel)=>{if(deepLevel>limitDeepLevel){return[];}// ...}
Expected Behavior
When Gatsby build, it should throw some error if someone try to break such prohibition.
4 levels of nested folder.
The below image shows 4 levels of nested folder.
this folder structure will create the nested navbar like this:
The text was updated successfully, but these errors were encountered:
Problem
When someone add the content more than 4 levels of nested folder, it will not be shown in the any result.
As you can see in the code: /src/components/Sidebar/contentTree.js
Expected Behavior
When
Gatsby
build, it should throw some error if someone try to break such prohibition.4 levels of nested folder.
The below image shows 4 levels of nested folder.
this folder structure will create the nested navbar like this:
The text was updated successfully, but these errors were encountered: