fixed linter problem
This commit is contained in:
parent
1bf7ff8994
commit
111515e794
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ const EffectsOverlay: FunctionComponent<EffectsOverlayProps> = ({ roomWidth }) =
|
||||||
if (effect === null) {
|
if (effect === null) {
|
||||||
const options = CHAT_EFFECTS.find((e) => e.command === name)?.options
|
const options = CHAT_EFFECTS.find((e) => e.command === name)?.options
|
||||||
try {
|
try {
|
||||||
const { default: Effect }: { default: ICanvasEffectConstructable } = await import(`../../../effects/${name}`);
|
const { default: Effect }: { default: ICanvasEffectConstructable }
|
||||||
|
= await import(`../../../effects/${name}`);
|
||||||
effect = new Effect(options);
|
effect = new Effect(options);
|
||||||
effectsRef.current[name] = effect;
|
effectsRef.current[name] = effect;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in a new issue