diff --git a/web/app/(commonLayout)/role-route-guard.tsx b/web/app/(commonLayout)/role-route-guard.tsx index c89611b6b7..37957994d1 100644 --- a/web/app/(commonLayout)/role-route-guard.tsx +++ b/web/app/(commonLayout)/role-route-guard.tsx @@ -14,9 +14,6 @@ export default function RoleRouteGuard({ children }: { children: ReactNode }) { const shouldGuardRoute = datasetOperatorRedirectRoutes.some(route => isPathUnderRoute(pathname, route)) const shouldRedirect = shouldGuardRoute && !isLoadingCurrentWorkspace && isCurrentWorkspaceDatasetOperator - if (shouldGuardRoute && isLoadingCurrentWorkspace) - return null - if (shouldRedirect) return redirect('/datasets')