mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-22 17:48:09 +00:00
Fixes settings getting overwrote when loading settings page.
This commit is contained in:
parent
9757f6a48d
commit
94b3255c93
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue