fix(fe2): Fix redirect loop on workspace creation during onboarding
fix(fe2): Fix redirect loop on workspace creation during onboarding
This commit is contained in:
@@ -104,10 +104,7 @@ export default defineNuxtRouteMiddleware(async (to) => {
|
||||
})
|
||||
.catch(convertThrowIntoFetchResult)
|
||||
|
||||
const workspaces =
|
||||
workspaceExistenceData?.activeUser?.workspaces?.items.filter(
|
||||
(w) => w.creationState?.completed !== false
|
||||
) ?? []
|
||||
const workspaces = workspaceExistenceData?.activeUser?.workspaces?.items ?? []
|
||||
const hasWorkspaces = workspaces.length > 0
|
||||
const hasDiscoverableWorkspaces =
|
||||
(workspaceExistenceData?.activeUser?.discoverableWorkspaces?.length ?? 0) > 0 ||
|
||||
|
||||
Reference in New Issue
Block a user