fix: remove unnecessary allow_auto_update default value (#7697)

* fix: remove unnecessary allow_auto_update default value

* fix: normalize missing profile auto-update state

---------

Co-authored-by: wonfen <eiwonfen@gmail.com>
This commit is contained in:
StarsSail
2026-08-09 06:29:01 +00:00
committed by GitHub
co-authored by wonfen
parent 117bac8110
commit df7e52f25c
3 changed files with 12 additions and 8 deletions
+6 -1
View File
@@ -55,6 +55,7 @@ export function ProfileViewer({ onChange, ref }: ProfileViewerProps) {
option: {
with_proxy: false,
self_proxy: false,
allow_auto_update: true,
},
},
})
@@ -418,7 +419,11 @@ export function ProfileViewer({ onChange, ref }: ProfileViewerProps) {
<InputLabel>
{t('profiles.modals.profileForm.fields.allowAutoUpdate')}
</InputLabel>
<Switch checked={field.value} {...field} color="primary" />
<Switch
checked={field.value ?? true}
{...field}
color="primary"
/>
</StyledBox>
)}
/>