mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 04:40:20 +03:00
Fix ESLint key={index}>
This commit is contained in:
parent
6fcb69779e
commit
98837c781d
|
@ -174,7 +174,7 @@ function formatCode(html, lang, prompt) {
|
|||
.split(' | ')
|
||||
.map((l, i) => convertLine(l, i))
|
||||
.map((l, j) => (
|
||||
<Fragment>
|
||||
<Fragment key={j}>
|
||||
{j !== 0 && <span> | </span>}
|
||||
{l}
|
||||
</Fragment>
|
||||
|
|
|
@ -71,7 +71,9 @@ const Languages = () => (
|
|||
<strong>{name}:</strong>{' '}
|
||||
{join(
|
||||
dependencies.map((dep, i) => (
|
||||
<Link to={dep.url}>{dep.name}</Link>
|
||||
<Link key={i} to={dep.url}>
|
||||
{dep.name}
|
||||
</Link>
|
||||
))
|
||||
)}
|
||||
</Li>
|
||||
|
|
Loading…
Reference in New Issue
Block a user