NTP-59042 | Alok | Fixed re-allocation response (#1441)

This commit is contained in:
Alok Kumar
2025-05-06 19:37:07 +05:30
committed by GitHub
parent 8b15e2c1b3
commit 42ec0a0364
3 changed files with 6 additions and 7 deletions

View File

@@ -95,7 +95,7 @@ export const getReallocationHistory =
{ {
pageNo, pageNo,
pageSize, pageSize,
type: 'TELE_RE_ALLOCATION' requestSubType: 'TELE_RE_ALLOCATION'
} }
); );
axiosInstance axiosInstance

View File

@@ -63,10 +63,11 @@ export const REALLOCATION_HISTORY_COLUMNS = [
headerName: 'Type', headerName: 'Type',
width: 200, width: 200,
cellRenderer: (params: ICellRendererParams) => { cellRenderer: (params: ICellRendererParams) => {
const fromAgentName = params.data?.jobData?.reallocationRequest?.requestParams?.fromAgentName; const fromAgentName = params.data?.jobData?.reallocationRequest?.sourceAgentName;
const reallocationType = const reallocationType =
ReallocationTypeOptions[params.data?.type as keyof typeof ReallocationTypeOptions] ?? ReallocationTypeOptions[
params.data?.type; params.data?.requestSubType as keyof typeof ReallocationTypeOptions
] ?? params.data?.requestSubType;
return ( return (
<div> <div>
<Typography variant="h4">{reallocationType}</Typography> <Typography variant="h4">{reallocationType}</Typography>

View File

@@ -54,9 +54,7 @@ export interface IReallocationHistory {
autoAllocationResult: { autoAllocationResult: {
distributionList: IReallocationDistribution[]; distributionList: IReallocationDistribution[];
}; };
reallocationRequest: { reallocationRequest: IReallocationSubmitPayload;
requestParams: IReallocationRequestParam;
};
}; };
} }