NTP-59042 | Alok | Fixed re-allocation response (#1441)
This commit is contained in:
@@ -95,7 +95,7 @@ export const getReallocationHistory =
|
|||||||
{
|
{
|
||||||
pageNo,
|
pageNo,
|
||||||
pageSize,
|
pageSize,
|
||||||
type: 'TELE_RE_ALLOCATION'
|
requestSubType: 'TELE_RE_ALLOCATION'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
axiosInstance
|
axiosInstance
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -54,9 +54,7 @@ export interface IReallocationHistory {
|
|||||||
autoAllocationResult: {
|
autoAllocationResult: {
|
||||||
distributionList: IReallocationDistribution[];
|
distributionList: IReallocationDistribution[];
|
||||||
};
|
};
|
||||||
reallocationRequest: {
|
reallocationRequest: IReallocationSubmitPayload;
|
||||||
requestParams: IReallocationRequestParam;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user