fix(next): infinite loop when logging into root admin (#7412)

This commit is contained in:
Jacob Fletcher
2024-07-29 12:57:57 -04:00
committed by GitHub
parent 7ed6634bc5
commit 874279c530
12 changed files with 82 additions and 36 deletions

View File

@@ -18,7 +18,7 @@ import {
closeNav,
ensureCompilationIsDone,
exactText,
getAdminRoutes,
getRoutes,
initPageConsoleErrorCatch,
login,
openDocControls,
@@ -99,7 +99,7 @@ describe('access control', () => {
routes: { logout: logoutRoute },
},
routes: { admin: adminRoute },
} = getAdminRoutes({})
} = getRoutes({})
logoutURL = `${serverURL}${adminRoute}${logoutRoute}`
})