Fix object spread
This commit is contained in:
parent
68c8a4d484
commit
5ca33e44d8
|
@ -30,19 +30,10 @@ export const setAllSettings = values => async (dispatch) => {
|
||||||
dispatch(setAllSettingsRequest());
|
dispatch(setAllSettingsRequest());
|
||||||
try {
|
try {
|
||||||
const {
|
const {
|
||||||
web,
|
confirm_password,
|
||||||
dns,
|
...config
|
||||||
username,
|
|
||||||
password,
|
|
||||||
} = values;
|
} = values;
|
||||||
|
|
||||||
const config = {
|
|
||||||
web,
|
|
||||||
dns,
|
|
||||||
username,
|
|
||||||
password,
|
|
||||||
};
|
|
||||||
|
|
||||||
await apiClient.setAllSettings(config);
|
await apiClient.setAllSettings(config);
|
||||||
dispatch(setAllSettingsSuccess());
|
dispatch(setAllSettingsSuccess());
|
||||||
dispatch(addSuccessToast('install_saved'));
|
dispatch(addSuccessToast('install_saved'));
|
||||||
|
|
Loading…
Reference in New Issue