Skip to content

Commit

Permalink
Fix duplicate input in private dns config
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Jul 2, 2024
1 parent d37dcda commit 2a66be9
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions client/src/components/ui/Guide/MobileConfigForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,14 @@ const MobileConfigForm = ({ invalid }: MobileConfigFormProps) => {
<label htmlFor="host" className="form__label">
{i18next.t('dhcp_table_hostname')}
</label>
{hosts.map((host, index) => {
return <Field
key={host}
name={`hosts.${index}`}
type="text"
component={renderInputField}
className="form-control"
placeholder={i18next.t('form_enter_hostname')}
validate={validateServerName}
/>;
})}
<Field
name="hosts.0"
type="text"
component={renderInputField}
className="form-control"
placeholder={i18next.t('form_enter_hostname')}
validate={validateServerName}
/>
</div>
{protocol === MOBILE_CONFIG_LINKS.DOH && (
<div className="col">
Expand Down

0 comments on commit 2a66be9

Please sign in to comment.