mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-23 21:45:46 +03:00
Fix object spread
This commit is contained in:
parent
68c8a4d484
commit
5ca33e44d8
1 changed files with 2 additions and 11 deletions
|
@ -30,19 +30,10 @@ export const setAllSettings = values => async (dispatch) => {
|
|||
dispatch(setAllSettingsRequest());
|
||||
try {
|
||||
const {
|
||||
web,
|
||||
dns,
|
||||
username,
|
||||
password,
|
||||
confirm_password,
|
||||
...config
|
||||
} = values;
|
||||
|
||||
const config = {
|
||||
web,
|
||||
dns,
|
||||
username,
|
||||
password,
|
||||
};
|
||||
|
||||
await apiClient.setAllSettings(config);
|
||||
dispatch(setAllSettingsSuccess());
|
||||
dispatch(addSuccessToast('install_saved'));
|
||||
|
|
Loading…
Reference in a new issue