File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/javascript/components
ansible-playbook-edit-catalog-form
terraform-template-catalog-form Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ export const KeyValueListComponent = (props) => {
182
182
< label htmlFor = { input . name } className = "bx--label" > { label } </ label >
183
183
< br />
184
184
{ input . value && input . value . map ( ( pair , index ) => (
185
- < div key = { pair . key } className = "key-value-list-pair" >
185
+ // eslint-disable-next-line react/no-array-index-key
186
+ < div key = { index } className = "key-value-list-pair" >
186
187
< TextInput
187
188
id = { `${ input . name } .${ index } .key` }
188
189
labelText = { keyLabel }
Original file line number Diff line number Diff line change @@ -183,7 +183,8 @@ export const KeyValueListComponent = (props) => {
183
183
< label htmlFor = { input . name } className = "bx--label" > { label } </ label >
184
184
< br />
185
185
{ input . value && input . value . map ( ( pair , index ) => (
186
- < div key = { pair . key } className = "key-value-list-pair" >
186
+ // eslint-disable-next-line react/no-array-index-key
187
+ < div key = { index } className = "key-value-list-pair" >
187
188
< TextInput
188
189
id = { `${ input . name } .${ index } .key` }
189
190
labelText = { keyLabel }
You can’t perform that action at this time.
0 commit comments