Fix object spread
This commit is contained in:
parent
68c8a4d484
commit
5ca33e44d8
|
@ -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 New Issue