fix install config
This commit is contained in:
@@ -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 }));
|
||||
|
||||
@@ -231,7 +231,7 @@ export const Settings = ({ handleSubmit, handleFix, validateForm, config, interf
|
||||
[handleStaticIp],
|
||||
);
|
||||
|
||||
const onSubmit = (data: any) => {
|
||||
const onSubmit = (data: SettingsFormValues) => {
|
||||
validateForm(data);
|
||||
handleSubmit(data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user