diff --git a/frontend/src/scripts/elements/custom-background-filter.ts b/frontend/src/scripts/elements/custom-background-filter.ts index 83420047c..5bebb1791 100644 --- a/frontend/src/scripts/elements/custom-background-filter.ts +++ b/frontend/src/scripts/elements/custom-background-filter.ts @@ -127,8 +127,7 @@ $(".section.customBackgroundFilter .save.button").click(() => { ConfigEvent.subscribe((eventKey, eventValue) => { if (eventKey === "customBackgroundFilter") { - ((eventValue as unknown) as any[]).map((ev) => parseFloat(ev)); - loadConfig((eventValue as unknown) as number[]); + loadConfig(((eventValue as unknown) as any[]).map((ev) => parseFloat(ev))); apply(); } });