remove dead unions

This commit is contained in:
Alex Holliday committed 2026-03-12 09:37:25 -07:00
1 parent fa8764fde2
commit e9cb302d6e
2 files changed
+5 -13

No files matched your search

+1 -9
View File
@@ -262,15 +262,7 @@ export const SettingsPage = () => {
if (value === undefined) {
(acc as any)[typedKey] = "";
} else if (typeof value === "object" && value !== null) {
// Handle nested objects like globalThresholds
// Convert 0 to "" for unsetting thresholds
(acc as any)[typedKey] = Object.entries(value).reduce(
(nested, [nestedKey, nestedValue]) => ({
...nested,
[nestedKey]: nestedValue === undefined ? "" : nestedValue,
}),
{}
);
(acc as any)[typedKey] = value;
} else {
(acc as any)[typedKey] = value;
}