From 91c4ef226bef83e21fcf2ef110faa4366e3cca5a Mon Sep 17 00:00:00 2001 From: James Date: Mon, 11 Jul 2022 08:31:43 -0700 Subject: [PATCH] fix: ensures router switch only contains top-level route components --- src/admin/components/Routes.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/admin/components/Routes.tsx b/src/admin/components/Routes.tsx index f642aca114..2e981b9cc0 100644 --- a/src/admin/components/Routes.tsx +++ b/src/admin/components/Routes.tsx @@ -106,18 +106,20 @@ const Routes = () => { + + + + {!userCollection.auth.disableLocalStrategy && ( - - - - - - - - - - - + + + + )} + + {!userCollection.auth.disableLocalStrategy && ( + + + )} {collections.map((collection) => {