Update telephone page: Update delete function for managers table
Deploy Frontend / build-and-deploy (push) Successful in 37s
Details
Deploy Frontend / build-and-deploy (push) Successful in 37s
Details
This commit is contained in:
parent
f7272b6232
commit
ea02e8b019
|
|
@ -283,7 +283,12 @@ function AddWhatsappModal({ opened, onClose }: { opened: boolean, onClose: () =>
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (opened && !qrData) fetchQr()
|
if (opened && !qrData) fetchQr()
|
||||||
if (!opened) stopPolling()
|
|
||||||
|
if (!opened) {
|
||||||
|
stopPolling()
|
||||||
|
setQrData(null)
|
||||||
|
}
|
||||||
|
|
||||||
return stopPolling
|
return stopPolling
|
||||||
}, [opened])
|
}, [opened])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue