Skip to content

Commit ca798bb

Browse files
committed
Update ManagedControlPlaneAuthorization.tsx
1 parent 4e146e4 commit ca798bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spaces/mcp/authorization/ManagedControlPlaneAuthorization.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { useTranslation } from 'react-i18next';
33

44
import IllustratedError from '../../../components/Shared/IllustratedError.tsx';
55
import { BusyIndicator, Button } from '@ui5/webcomponents-react';
6-
import { ControlPlaneType } from '../../../lib/api/types/crate/controlPlanes.ts';
76
import { generatePath, useNavigate, useParams } from 'react-router-dom';
87
import { Routes } from '../../../Routes.ts';
98

@@ -25,6 +24,8 @@ export const ManagedControlPlaneAuthorization = ({ children }: ManagedControlPla
2524
projectName: projectName ?? '',
2625
}),
2726
);
27+
} else {
28+
navigate(Routes.Home);
2829
}
2930
};
3031

0 commit comments

Comments
 (0)