mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 20:22:39 +08:00
tweaks
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user