1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

fixed linter problem

This commit is contained in:
nurjinn jafar
2020-12-01 17:37:28 +01:00
parent 1bf7ff8994
commit 111515e794

View File

@@ -34,7 +34,8 @@ const EffectsOverlay: FunctionComponent<EffectsOverlayProps> = ({ roomWidth }) =
if (effect === null) {
const options = CHAT_EFFECTS.find((e) => e.command === name)?.options
try {
const { default: Effect }: { default: ICanvasEffectConstructable } = await import(`../../../effects/${name}`);
const { default: Effect }: { default: ICanvasEffectConstructable }
= await import(`../../../effects/${name}`);
effect = new Effect(options);
effectsRef.current[name] = effect;
} catch (err) {