Client: Components: Main: Fixed event.

This commit is contained in:
Tatiana Lopaeva 2024-07-15 17:56:54 +03:00
parent 540243fa8e
commit 1f714c343c

View File

@ -59,7 +59,7 @@ const Main = (props) => {
window.addEventListener("resize", onResize); window.addEventListener("resize", onResize);
return () => { return () => {
window.addEventListener("resize", onResize); window.removeEventListener("resize", onResize);
clearTimeout(updateSizeRef.current); clearTimeout(updateSizeRef.current);
}; };