Fix object spread

This commit is contained in:
Ildar Kamalov 2019-02-07 18:51:21 +03:00
parent 68c8a4d484
commit 5ca33e44d8

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