mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Fix the error I made
This commit is contained in:
parent
9888183ff2
commit
784d7cbecd
@ -280,20 +280,8 @@ const useRoomState = () =>
|
|||||||
|
|
||||||
return () =>
|
return () =>
|
||||||
{
|
{
|
||||||
setRoomBackground(prevValue =>
|
setRoomBackground(null);
|
||||||
{
|
setRoomFilter(null);
|
||||||
if(prevValue) prevValue.destroy();
|
|
||||||
|
|
||||||
return null;
|
|
||||||
});
|
|
||||||
|
|
||||||
setRoomFilter(prevValue =>
|
|
||||||
{
|
|
||||||
if(prevValue) prevValue.destroy();
|
|
||||||
|
|
||||||
return null;
|
|
||||||
});
|
|
||||||
|
|
||||||
setOriginalRoomBackgroundColor(0);
|
setOriginalRoomBackgroundColor(0);
|
||||||
|
|
||||||
window.removeEventListener('resize', resize);
|
window.removeEventListener('resize', resize);
|
||||||
|
Loading…
Reference in New Issue
Block a user