From eb56a2c6fceade9634ad1285d87c0a90efcd691f Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 20 Mar 2026 11:33:27 +0800 Subject: [PATCH] tweaks --- web/app/(commonLayout)/role-route-guard.tsx | 3 --- 1 file changed, 3 deletions(-) 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')