You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/src/ts/components/pages/settings/SearchableAutoSetting.tsx
+4-12Lines changed: 4 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ export function SearchableAutoSetting<T extends ConfigKey>(props: {
31
31
[props.key]: getConfig[props.key],
32
32
},
33
33
onSubmit: ({ value })=>{
34
-
constval=parseFloat(String(value[props.key]));
34
+
constval=value[props.key];
35
35
if(val===getConfig[props.key])return;
36
36
savedIndicator.flash();
37
37
setConfig(props.key,valasConfig[T]);
@@ -56,17 +56,9 @@ export function SearchableAutoSetting<T extends ConfigKey>(props: {
56
56
//@ts-expect-error -- i think because props.key is a key of config, which is a zod schema, the typechecker gives up (too complex to infer or something)
0 commit comments