mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-03 21:52:11 +08:00
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:
@@ -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>
|
||||
)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user