fixed build error

pull/21833/head
Steffen Kolmer 2020-10-21 14:56:04 +02:00
parent 8847561795
commit 6f4c5d1b08
1 changed files with 4 additions and 3 deletions

View File

@ -44,7 +44,8 @@ const EffectsOverlay: FunctionComponent<EffectsOverlayProps> = ({ roomWidth }) =
return () => { return () => {
dis.unregister(dispatcherRef); dis.unregister(dispatcherRef);
window.removeEventListener('resize', resize); window.removeEventListener('resize', resize);
const currentEffects = effectsRef.current; // 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) { for (const effect in currentEffects) {
const effectModule: ICanvasEffect = currentEffects[effect]; const effectModule: ICanvasEffect = currentEffects[effect];
if (effectModule && effectModule.isRunning) { if (effectModule && effectModule.isRunning) {