From 5ca33e44d897d08117e10b248fe9dbe25d3b31f8 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 7 Feb 2019 18:51:21 +0300 Subject: [PATCH] Fix object spread --- client/src/actions/install.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/client/src/actions/install.js b/client/src/actions/install.js index c6882daa..c738f75d 100644 --- a/client/src/actions/install.js +++ b/client/src/actions/install.js @@ -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'));