From b08df97fee819957d6da5e156c9201436cbb8586 Mon Sep 17 00:00:00 2001 From: Andre Wohnsland <50302161+AndreWohnsland@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:05:21 +0100 Subject: [PATCH] Fix multiple added list config sharing value --- web_client/src/components/options/ConfigWindow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_client/src/components/options/ConfigWindow.tsx b/web_client/src/components/options/ConfigWindow.tsx index f5a2ebeb..a8738c6c 100644 --- a/web_client/src/components/options/ConfigWindow.tsx +++ b/web_client/src/components/options/ConfigWindow.tsx @@ -224,7 +224,8 @@ const ConfigWindow: React.FC = () => { const handleAddItem = (key: string, defaultValue: PossibleConfigValue) => { setConfigData((prevData) => { const currentValue = prevData[key]; - const newValue = Array.isArray(currentValue) ? [...currentValue, defaultValue] : [defaultValue]; + const clonedDefault = structuredClone(defaultValue); + const newValue = Array.isArray(currentValue) ? [...currentValue, clonedDefault] : [clonedDefault]; return { ...prevData, [key]: newValue,