1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Merge pull request #1032 from Unleash/fix/admin-route-flags-bug

fix: admin routes bug
This commit is contained in:
sighphyre 2022-05-26 16:57:21 +02:00 committed by GitHub
commit ed0687fe3f

View File

@ -63,9 +63,9 @@ const Header: VFC = () => {
const filteredMainRoutes = { const filteredMainRoutes = {
mainNavRoutes: routes.mainNavRoutes.filter(filterByFlags(flags)), mainNavRoutes: routes.mainNavRoutes.filter(filterByFlags(flags)),
mobileRoutes: routes.mobileRoutes.filter(filterByFlags(flags)), mobileRoutes: routes.mobileRoutes.filter(filterByFlags(flags)),
adminRoutes: routes.adminRoutes.filter( adminRoutes: routes.adminRoutes
filterByFlags(flags) && filterByBilling(isBilling) .filter(filterByFlags(flags))
), .filter(filterByBilling(isBilling)),
}; };
if (smallScreen) { if (smallScreen) {