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 () =>
|
||||
{
|
||||
setRoomBackground(prevValue =>
|
||||
{
|
||||
if(prevValue) prevValue.destroy();
|
||||
|
||||
return null;
|
||||
});
|
||||
|
||||
setRoomFilter(prevValue =>
|
||||
{
|
||||
if(prevValue) prevValue.destroy();
|
||||
|
||||
return null;
|
||||
});
|
||||
|
||||
setRoomBackground(null);
|
||||
setRoomFilter(null);
|
||||
setOriginalRoomBackgroundColor(0);
|
||||
|
||||
window.removeEventListener('resize', resize);
|
||||
|
Loading…
Reference in New Issue
Block a user