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:
commit
ed0687fe3f
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user