Skip to content

Commit fef18c5

Browse files
author
Vikas Agarwal
committed
Fixed renaming of the form fields. This could have caused either new links or old links to be rendered as empty or may be throw an error.
1 parent 0a451ac commit fef18c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/LinksMenu/AddLink.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AddLink extends React.Component {
3333
<Modal.Body>
3434
<Formsy.Form onValidSubmit={onAdd} onValid={this.enableSubmitBtn} onInvalid={this.disableSubmitBtn}>
3535
<TCFormFields.TextInput
36-
name="name"
36+
name="title"
3737
label="Name"
3838
type="text"
3939
validations="isRequired"
@@ -42,7 +42,7 @@ class AddLink extends React.Component {
4242
wrapperClass="form-group"
4343
/>
4444
<TCFormFields.TextInput
45-
name="url"
45+
name="address"
4646
label="URL"
4747
type="text"
4848
validationError="URL is required."

0 commit comments

Comments
 (0)