We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a444eb3 + 3b27bd1 commit b3bdec2Copy full SHA for b3bdec2
web_client/src/components/options/ConfigWindow.tsx
@@ -224,7 +224,8 @@ const ConfigWindow: React.FC = () => {
224
const handleAddItem = (key: string, defaultValue: PossibleConfigValue) => {
225
setConfigData((prevData) => {
226
const currentValue = prevData[key];
227
- const newValue = Array.isArray(currentValue) ? [...currentValue, defaultValue] : [defaultValue];
+ const clonedDefault = structuredClone(defaultValue);
228
+ const newValue = Array.isArray(currentValue) ? [...currentValue, clonedDefault] : [clonedDefault];
229
return {
230
...prevData,
231
[key]: newValue,
0 commit comments