Remoçã de algumas linhas

pull/20/head
adriano 2022-08-09 18:43:51 -03:00
parent 8c2164c5a2
commit 072fcd5b09
1 changed files with 6 additions and 6 deletions

View File

@ -266,9 +266,10 @@ const Dashboard = () => {
const socket = openSocket(process.env.REACT_APP_BACKEND_URL); const socket = openSocket(process.env.REACT_APP_BACKEND_URL);
socket.on("ticketStatus", (data) => { socket.on("ticketStatus", (data) => {
if (data.action === "update") { if (data.action === "update") {
setStatus('')
setStatus(data.ticketStatus.status); // setStatus({...ticketStatusChange}, data.ticketStatus.status )
} }
}); });
@ -295,8 +296,7 @@ const Dashboard = () => {
}, []); }, []);
useEffect(() => { useEffect(() => {
if (ticketStatusChange === '') return
const delayDebounceFn = setTimeout(() => { const delayDebounceFn = setTimeout(() => {
const fetchQueries = async () => { const fetchQueries = async () => {
@ -320,7 +320,7 @@ const Dashboard = () => {
} catch (err) { } catch (err) {
console.log(err); console.log(err);
} }
}; };
fetchQueries(); fetchQueries();
}, 500); }, 500);