Fixes settings getting overwrote when loading settings page.

This commit is contained in:
SergeantPanda 2025-06-15 13:06:10 -05:00
parent 9757f6a48d
commit 94b3255c93

View file

@ -54,7 +54,7 @@ const SettingsPage = () => {
const regionChoices = REGION_CHOICES;
const form = useForm({
mode: 'uncontrolled',
mode: 'controlled',
initialValues: {
'default-user-agent': '',
'default-stream-profile': '',
@ -71,7 +71,7 @@ const SettingsPage = () => {
});
const networkAccessForm = useForm({
mode: 'uncontrolled',
mode: 'controlled',
initialValues: Object.keys(NETWORK_ACCESS_OPTIONS).reduce((acc, key) => {
acc[key] = '0.0.0.0/0';
return acc;
@ -94,7 +94,7 @@ const SettingsPage = () => {
});
const proxySettingsForm = useForm({
mode: 'uncontrolled',
mode: 'controlled',
initialValues: Object.keys(PROXY_SETTINGS_OPTIONS).reduce((acc, key) => {
acc[key] = '';
return acc;