fix some lint warning message

This commit is contained in:
mgold1234 2023-11-14 11:12:24 +02:00 committed by Klara Simickova
parent 2bdb8c6fcc
commit b8c634eac0
5 changed files with 6 additions and 8 deletions

View file

@ -25,7 +25,7 @@ import {
RepositoriesTable,
} from './ReviewStepTables';
import { ARCHS, RELEASES, UNIT_GIB } from '../../../constants';
import { RELEASES, UNIT_GIB } from '../../../constants';
import { extractProvisioningList } from '../../../store/helpers';
import { useGetSourceListQuery } from '../../../store/provisioningApi';
import { useShowActivationKeyQuery } from '../../../store/rhsmApi';

View file

@ -430,7 +430,7 @@ const AwsRow = ({ compose, composeStatus, rowIndex }: AwsRowPropTypes) => {
type RowPropTypes = {
compose: ComposesResponseItem;
rowIndex: any;
rowIndex: number;
status: JSX.Element;
target?: JSX.Element;
actions?: JSX.Element;

View file

@ -63,7 +63,7 @@ const generateRequests = (
type RegionsSelectPropTypes = {
composeId: string;
handleClose: any;
handleClose: () => void;
};
const RegionsSelect = ({ composeId, handleClose }: RegionsSelectPropTypes) => {

View file

@ -21,10 +21,11 @@ export const fetchComposes = (limit, offset) => async (dispatch) => {
const composeRequest = await api.getComposes(limit, offset);
if (!composeRequest) return;
composeRequest.data.map((compose) => {
composeRequest.data.forEach((compose) => {
dispatch(composeAdded({ compose, insert: false }));
dispatch(fetchComposeStatus(compose.id));
});
dispatch(composesUpdatedCount({ count: composeRequest.meta.count }));
composeRequest.data.forEach((compose) => {

View file

@ -52,10 +52,7 @@ const enhancedApi = imageBuilderApi.enhanceEndpoints({
},
},
composeImage: {
onQueryStarted: async (
{ composeRequest },
{ dispatch, queryFulfilled }
) => {
onQueryStarted: async (_, { dispatch, queryFulfilled }) => {
queryFulfilled
.then(() => {
// Typescript is unaware of tag types being defined concurrently in enhanceEndpoints()