src/platform/site-wide/side-nav/helpers.js
Function deriveNavItemsLookup
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deriveNavItemsLookup = options => {
// Derive the properties from options.
const rootPath = get(options, 'rootPath');
const depth = get(options, 'depth', 0);
const items = get(options, 'items', []);