fix: lint errors

This commit is contained in:
Mingholy
2025-09-16 20:01:16 +08:00
parent f599cda7d2
commit d3476a2d47
5 changed files with 10 additions and 12 deletions

View File

@@ -544,16 +544,16 @@ export function SettingsDialog({
? defaultValue
: false
: typeof defaultValue === 'number' ||
typeof defaultValue === 'string'
typeof defaultValue === 'string'
? defaultValue
: undefined;
const immediateSettingsObject =
toSaveValue !== undefined
? setPendingSettingValueAny(
currentSetting.value,
toSaveValue,
{} as Settings,
)
currentSetting.value,
toSaveValue,
{} as Settings,
)
: ({} as Settings);
saveModifiedSettings(