fix: Resolve report error at supervisor level in frontend
parent
09a469e892
commit
21b19fcfbd
|
@ -338,9 +338,9 @@ const Report = () => {
|
|||
let userQueues = userA.queues;
|
||||
let filterQueuesTickets = [];
|
||||
if(userQueues.length > 1){
|
||||
filterQueuesTickets = ticketsQueue.filter(ticket => userQueues.some(queue => queue.name === ticket.queue.name));
|
||||
filterQueuesTickets = ticketsQueue.filter(ticket => userQueues.some(queue => queue?.name === ticket?.queue?.name));
|
||||
}else if(userQueues.length > 0) {
|
||||
filterQueuesTickets = ticketsQueue.filter(ticket => ticket.queue.name === userQueues[0].name);
|
||||
filterQueuesTickets = ticketsQueue.filter(ticket => ticket?.queue?.name === userQueues[0]?.name);
|
||||
}
|
||||
data.tickets = filterQueuesTickets;
|
||||
dispatchQ({ type: "LOAD_QUERY", payload: data.tickets })
|
||||
|
|
Loading…
Reference in New Issue