File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import React from 'react';
44import { MissingAnnotationEmptyState } from '@backstage/core-components' ;
55import { Button } from '@material-ui/core' ;
66import { GitlabCI } from './components/GitlabCI' ;
7- import { rootRouteRef } from './plugin' ;
87import { useEntity } from '@backstage/plugin-catalog-react' ;
98
109const 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 }
You can’t perform that action at this time.
0 commit comments