fix install config

This commit is contained in:
Ildar Kamalov
2025-02-18 17:31:04 +03:00
parent 0a3346d911
commit 58faa7c537
5 changed files with 9 additions and 21 deletions

View File

@@ -50,8 +50,9 @@ export const checkConfig = (values: any) => async (dispatch: any) => {
try {
const check = await apiClient.checkConfig(values);
dispatch(checkConfigSuccess({
...values,
...check,
web: { ...values.web, ...check.web },
dns: { ...values.dns, ...check.dns },
static_ip: check.static_ip,
}));
} catch (error) {
dispatch(addErrorToast({ error }));