mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
FIX: Contabiliza Tickets de filas no Dashboard
This commit is contained in:
committed by
GitHub
parent
d61507d334
commit
3a5c6a1ab3
@@ -46,15 +46,18 @@ const Dashboard = () => {
|
||||
const classes = useStyles()
|
||||
|
||||
const { user } = useContext(AuthContext);
|
||||
var userQueueIds = [];
|
||||
|
||||
const userQueueIds = user.queues.map(q => q.id);
|
||||
if (user.queues && user.queues.length > 0) {
|
||||
userQueueIds = user.queues.map(q => q.id);
|
||||
}
|
||||
|
||||
const GetTickets = (status, showAll, withUnreadMessages) => {
|
||||
|
||||
const { tickets } = useTickets({
|
||||
status: status,
|
||||
showAll: showAll,
|
||||
withUnreadMessages: withUnreadMessages,
|
||||
const { tickets } = useTickets({
|
||||
status: status,
|
||||
showAll: showAll,
|
||||
withUnreadMessages: withUnreadMessages,
|
||||
queueIds: JSON.stringify(userQueueIds)
|
||||
});
|
||||
return tickets.length;
|
||||
|
||||
Reference in New Issue
Block a user