File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ function filter(errors, baseName) {
4444 * <Form.FieldArray name="friends" events="blur">
4545 * {({ value, arrayHelpers }) => (
4646 * <ul>
47- * {value.map((value , idx) => (
47+ * {value.map((item , idx) => (
4848 * <li key={idx} >
4949 * <div style={{ display: 'flex', alignItems: 'flex-start' }}>
5050 * <Form.Field name={`friends[${idx}].name`} />
51- * <button type="button" onClick={() => arrayHelpers.remove(value )}>-</button>
52- * <button type="button" onClick={() => arrayHelpers.insert ({ name: undefined }, idx) }>+</button>
51+ * <button type="button" onClick={() => arrayHelpers.remove(item )}>-</button>
52+ * <button type="button" onClick={() => arrayHelpers.add ({ name: undefined }, idx) }>+</button>
5353 * </div>
5454 * <Form.Message for={`friends[${idx}].name` } />
5555 * </li>
You can’t perform that action at this time.
0 commit comments