@@ -12,7 +12,7 @@ import {
12
12
import { PageDetailsFromColumns } from '../../../framework' ;
13
13
import { RouteObj } from '../../Routes' ;
14
14
import { useGet } from '../../common/crud/useGet' ;
15
- import { HubItemsResponse } from '../useHubView' ;
15
+ import { HubNamespaceResponse } from '../useHubView' ;
16
16
import { HubNamespace } from './HubNamespace' ;
17
17
import { useHubView } from '../useHubView' ;
18
18
import { useHubNamespaceActions } from './hooks/useHubNamespaceActions' ;
@@ -29,17 +29,11 @@ import { DropdownPosition } from '@patternfly/react-core';
29
29
export function NamespaceDetails ( ) {
30
30
const { t } = useTranslation ( ) ;
31
31
const params = useParams < { id : string } > ( ) ;
32
- const { data } = useGet < HubItemsResponse < HubNamespace > > (
32
+ const { data } = useGet < HubNamespaceResponse < HubNamespace > > (
33
33
`/api/automation-hub/pulp/api/v3/pulp_ansible/namespaces/?limit=1&name=${ params . id ?? '' } `
34
34
) ;
35
35
let namespace : HubNamespace | undefined = undefined ;
36
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
37
- // @ts -ignore
38
36
if ( data && data . results && data . count > 0 ) {
39
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
40
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
41
- // @ts -ignore
42
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
43
37
namespace = data . results [ 0 ] ;
44
38
}
45
39
0 commit comments