Skip to content

Commit 2bb66fd

Browse files
committed
npm run lint
No-Issue
1 parent 5861f2f commit 2bb66fd

File tree

5 files changed

+2
-10
lines changed

5 files changed

+2
-10
lines changed

ansible-hub-ui/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.9.0dev"
1+
__version__ = "4.9.0b1"

src/components/legacy-namespace-list/legacy-namespace-item.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ import {
33
DataListItem,
44
DataListItemCells,
55
DataListItemRow,
6-
DropdownItem,
76
} from '@patternfly/react-core';
87
import React from 'react';
98
import { Link } from 'react-router-dom';
109
import { LegacyNamespaceDetailType } from 'src/api';
1110
import { Logo } from 'src/components';
12-
import { useContext } from 'src/loaders/app-context';
1311
import { Paths, formatPath } from 'src/paths';
1412
import './legacy-namespace-item.scss';
1513

src/containers/ansible-role/namespace-detail.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
DataListItem,
66
DataListItemCells,
77
DataListItemRow,
8-
DropdownItem,
98
} from '@patternfly/react-core';
109
import React from 'react';
1110
import { Link } from 'react-router-dom';

src/containers/ansible-role/namespace-list.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
interface RoleNamespacesState {
2626
alerts: AlertType[];
2727
count: number;
28-
lightspeedModal?: string;
2928
loading: boolean;
3029
params: {
3130
page?: number;
@@ -50,7 +49,6 @@ class AnsibleRoleNamespaceList extends React.Component<
5049
this.state = {
5150
alerts: [],
5251
count: 0,
53-
lightspeedModal: null,
5452
loading: true,
5553
params: {
5654
page: 1,
@@ -119,8 +117,7 @@ class AnsibleRoleNamespaceList extends React.Component<
119117
},
120118
];
121119

122-
const { alerts, count, lightspeedModal, loading, params, roleNamespaces } =
123-
this.state;
120+
const { alerts, count, loading, params, roleNamespaces } = this.state;
124121

125122
const noData =
126123
count === 0 &&

src/containers/namespace-detail/namespace-detail.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,6 @@ export class NamespaceDetail extends React.Component<RouteProps, IState> {
989989

990990
private renderCollectionControls(collection: CollectionVersionSearch) {
991991
const { hasPermission } = this.context;
992-
const hasObjectPermission = (permission, namespace) =>
993-
namespace?.related_fields?.my_permissions?.includes?.(permission);
994992
const { showControls } = this.state;
995993
const { display_repositories } = this.context.featureFlags;
996994

0 commit comments

Comments
 (0)