From 994d1bc609a1f861e80f002d29b728d7952a3743 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 14 Feb 2022 17:01:43 +0100 Subject: [PATCH] actually using the converted values --- frontend/src/scripts/elements/custom-background-filter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); } });