diff --git a/src/components/modals/HostModals/AddHost.tsx b/src/components/modals/HostModals/AddHost.tsx index 7c6679ec..5135fca8 100644 --- a/src/components/modals/HostModals/AddHost.tsx +++ b/src/components/modals/HostModals/AddHost.tsx @@ -137,12 +137,6 @@ const AddHost = (props: PropsToAddHost) => { pfError: ValidatedOptions.default, }); - useEffect(() => { - if (hostIpAddress === "") { - setForceCheckbox(false); - } - }, [hostIpAddress]); - const hostNameValidationHandler = (hostname: string) => { if (hostname === "") { const hostNameVal = { @@ -218,8 +212,6 @@ const AddHost = (props: PropsToAddHost) => { pfError: ValidatedOptions.error, }; setHostIpAddressValidation(ipVal); - // Can not force DNS bypass without a valid IP address - setForceCheckbox(false); } }, [hostName, dnsZoneSelected, hostIpAddress]); @@ -394,11 +386,12 @@ const AddHost = (props: PropsToAddHost) => { name="forceCheckbox" value="force" onChange={handleForceCheckbox} - isDisabled={hostIpAddressValidation.isError || hostIpAddress === ""} + isDisabled={hostIpAddressValidation.isError} /> - Requires valid IP address + Allow adding host objects that does not have DNS entries + associated with them