diff --git a/app/masks/index.ts b/app/masks/index.ts index bff5c9bbe0a..22a725e4780 100644 --- a/app/masks/index.ts +++ b/app/masks/index.ts @@ -30,9 +30,8 @@ if (typeof window != "undefined") { return { cn: [], tw: [], en: [] }; }) .then((masks) => { - const { cn = [], tw = [], en = [] } = masks; - return [...cn, ...tw, ...en].map((m) => { - BUILTIN_MASKS.push(BUILTIN_MASK_STORE.add(m)); + return Object.values(masks).flat().map((m) => { + BUILTIN_MASKS.push(BUILTIN_MASK_STORE.add(m as BuiltinMask)); }); }); }