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,
pageSize,
type: 'TELE_RE_ALLOCATION'
requestSubType: 'TELE_RE_ALLOCATION'
}
);
axiosInstance

View File

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

View File

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