This repository was archived by the owner on Jun 10, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
src/scenes/home/codeSchools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class ApprovedSchools extends Component {
3535 . map ( school =>
3636 (
3737 < SchoolCard
38- key = { `${ Math . random ( ) } + ${ school . name } ` }
38+ key = { `${ Math . random ( ) } + ${ school . name } + ${ school . address } ` }
3939 alt = { school . name }
4040 schoolName = { school . name }
4141 link = { school . url }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class OnlineSchools extends Component {
3737 const eSchools = this . state . eSchools . map ( school =>
3838 (
3939 < SchoolCard
40- key = { `${ Math . random ( ) } + ${ school . name } ` }
40+ key = { `${ Math . random ( ) } + ${ school . name } + ${ school . address } ` }
4141 alt = { school . name }
4242 schoolName = { school . name }
4343 link = { school . url }
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ class StateSortedSchools extends Component {
4040 if ( e instanceof TypeError ) {
4141 /* eslint-disable no-console */
4242 console . log ( 'Error: Typo in code_schools.yaml on the back-end under the `state` field' ) ;
43- console . log ( e ) ;
4443 /* eslint-disable no-console */
4544 return false ;
4645 }
@@ -74,7 +73,7 @@ class StateSortedSchools extends Component {
7473 . map ( school =>
7574 (
7675 < SchoolCard
77- key = { school . address }
76+ key = { ` ${ Math . random ( ) } + ${ school . name } + ${ school . address } ` }
7877 alt = { school . name }
7978 schoolName = { school . name }
8079 link = { school . url }
You can’t perform that action at this time.
0 commit comments