Fix object spread

This commit is contained in:
Ildar Kamalov 2019-02-07 18:51:21 +03:00
parent 68c8a4d484
commit 5ca33e44d8
1 changed files with 2 additions and 11 deletions

View File

@ -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'));