Skip to content

Commit

Permalink
Fixed duplicate id bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsa committed Jul 23, 2021
1 parent 86236e7 commit aeb95fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default ({ field, formName }) => {
return (
<ControlledVocabularySelectMultiple
key={fieldName}
id={`${fieldName}-adaptation`}
tree={tree}
roots={['National policy']}
name={fieldName}
Expand All @@ -76,6 +77,7 @@ export default ({ field, formName }) => {
return (
<ControlledVocabularySelectMultiple
key={fieldName}
id={fieldName}
tree={tree}
roots={form.nationalPolicy.map(({ term }) => term)}
name={fieldName}
Expand All @@ -99,6 +101,7 @@ export default ({ field, formName }) => {
return (
<ControlledVocabularySelectMultiple
key={fieldName}
id={`${fieldName}-adaptation`}
tree={tree}
roots={['Regional policy']}
name={fieldName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export default ({ field, formName }) => {
return (
<ControlledVocabularySelectMultiple
key={fieldName}
id={fieldName}
tree={tree}
roots={['National policy']}
name={fieldName}
Expand All @@ -222,6 +223,7 @@ export default ({ field, formName }) => {
return (
<ControlledVocabularySelectMultiple
key={fieldName}
id={fieldName}
tree={tree}
roots={['Regional policy']}
name={fieldName}
Expand Down

0 comments on commit aeb95fa

Please sign in to comment.