Skip to content

Commit 69b2066

Browse files
Sathish Kumarsatrox28
authored andcommitted
Removing path deprecated
1 parent 9117486 commit 69b2066

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Router.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import React from 'react';
44
import { MissingAnnotationEmptyState } from '@backstage/core-components';
55
import { Button } from '@material-ui/core';
66
import { GitlabCI } from './components/GitlabCI';
7-
import { rootRouteRef } from './plugin';
87
import { useEntity } from '@backstage/plugin-catalog-react';
98

109
const GITLAB_ANNOTATION_PROJECT_ID = 'gitlab.com/project-id';
@@ -29,12 +28,11 @@ export const Router = (_props: Props) => {
2928
const { entity } = useEntity();
3029

3130
if (
32-
isGitlabProjectIDAnnotationAvailable(entity) ||
33-
isGitlabSlugAnnotationAvailable(entity)
31+
isGitlabAvailable(entity)
3432
) {
3533
return (
3634
<Routes>
37-
<Route path={`/${rootRouteRef.path}`} element={<GitlabCI />} />
35+
<Route path="/" element={<GitlabCI />} />
3836
</Routes>
3937
);
4038
}

0 commit comments

Comments
 (0)