fix install check config
This commit is contained in:
@@ -51,7 +51,7 @@ export const checkConfig = (values: any) => async (dispatch: any) => {
|
|||||||
const check = await apiClient.checkConfig(values);
|
const check = await apiClient.checkConfig(values);
|
||||||
dispatch(checkConfigSuccess({
|
dispatch(checkConfigSuccess({
|
||||||
...values,
|
...values,
|
||||||
check,
|
...check,
|
||||||
}));
|
}));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
dispatch(addErrorToast({ error }));
|
dispatch(addErrorToast({ error }));
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ export const Settings = ({ handleSubmit, handleFix, validateForm, config, interf
|
|||||||
const webPortError = validateInstallPort(webPortVal);
|
const webPortError = validateInstallPort(webPortVal);
|
||||||
const dnsPortError = validateInstallPort(dnsPortVal);
|
const dnsPortError = validateInstallPort(dnsPortVal);
|
||||||
|
|
||||||
if (!isValid || webPortError || dnsPortError) {
|
if (webPortError || dnsPortError) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user