diff --git a/apps/storefront/src/components/table/B3PaginationTable.tsx b/apps/storefront/src/components/table/B3PaginationTable.tsx index 7378def2..a2523c3b 100644 --- a/apps/storefront/src/components/table/B3PaginationTable.tsx +++ b/apps/storefront/src/components/table/B3PaginationTable.tsx @@ -130,8 +130,6 @@ function PaginationTable( } }) - console.log(copyCacheAllList, 'copyCacheAllList') - setCacheAllList(copyCacheAllList) } diff --git a/apps/storefront/src/shared/routes/routes.ts b/apps/storefront/src/shared/routes/routes.ts index 1c3a6d80..1afbba8b 100644 --- a/apps/storefront/src/shared/routes/routes.ts +++ b/apps/storefront/src/shared/routes/routes.ts @@ -259,7 +259,6 @@ const firstLevelRouting: RouteFirstLevelItem[] = [ ] const getAllowedRoutes = (globalState: GlobalState): RouteItem[] => { const { isB2BUser, role, isAgenting, storefrontConfig } = globalState - return routes.filter((item: RouteItem) => { const { permissions = [] } = item @@ -267,8 +266,11 @@ const getAllowedRoutes = (globalState: GlobalState): RouteItem[] => { return permissions.includes(4) } - // b2b user + // bc user if (!isB2BUser) { + const navListKey = + storefrontConfig && storefrontConfig[item.configKey || ''] + if (typeof navListKey === 'boolean') return navListKey return permissions.includes(99) }