From 3bb63a25daa85d56d097f05a2d65204c72291d28 Mon Sep 17 00:00:00 2001 From: canove Date: Wed, 13 Jan 2021 20:10:59 -0300 Subject: [PATCH] fix: new tickets not showing up by websockets --- frontend/src/components/TicketsList/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/TicketsList/index.js b/frontend/src/components/TicketsList/index.js index e8eb0e6..f771154 100644 --- a/frontend/src/components/TicketsList/index.js +++ b/frontend/src/components/TicketsList/index.js @@ -185,7 +185,7 @@ const TicketsList = ({ status, searchParam, showAll, selectedQueueIds }) => { const shouldUpdateTicket = ticket => (!ticket.userId || ticket.userId === user?.id || showAll) && - selectedQueueIds.indexOf(ticket.queueId) > -1; + (!ticket.queueId || selectedQueueIds.indexOf(ticket.queueId) > -1); socket.on("connect", () => { if (status) {