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);
socket.on("ticketStatus", (data) => {
if (data.action === "update") {
setStatus('')
setStatus(data.ticketStatus.status);
if (data.action === "update") {
// setStatus({...ticketStatusChange}, data.ticketStatus.status )
}
});
@ -295,8 +296,7 @@ const Dashboard = () => {
}, []);
useEffect(() => {
if (ticketStatusChange === '') return
const delayDebounceFn = setTimeout(() => {
const fetchQueries = async () => {
@ -320,7 +320,7 @@ const Dashboard = () => {
} catch (err) {
console.log(err);
}
};
};
fetchQueries();
}, 500);