mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 02:07:29 +03:00
fixed build error
This commit is contained in:
parent
8847561795
commit
6f4c5d1b08
1 changed files with 4 additions and 3 deletions
|
@ -43,11 +43,12 @@ const EffectsOverlay: FunctionComponent<EffectsOverlayProps> = ({ roomWidth }) =
|
|||
|
||||
return () => {
|
||||
dis.unregister(dispatcherRef);
|
||||
window.removeEventListener('resize', resize);
|
||||
const currentEffects = effectsRef.current;
|
||||
window.removeEventListener('resize', resize);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
const currentEffects = effectsRef.current; // this is not a react node ref, warning can be safely ignored
|
||||
for (const effect in currentEffects) {
|
||||
const effectModule: ICanvasEffect = currentEffects[effect];
|
||||
if(effectModule && effectModule.isRunning) {
|
||||
if (effectModule && effectModule.isRunning) {
|
||||
effectModule.stop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue