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