Fix duplicate key in Linkify
This commit is contained in:
parent
71572db7a9
commit
e7e9021e3f
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ export class Linkify extends React.Component<Props> {
|
||||||
|
|
||||||
chunkData.forEach(({ chunk, matchData }) => {
|
chunkData.forEach(({ chunk, matchData }) => {
|
||||||
if (matchData.length === 0) {
|
if (matchData.length === 0) {
|
||||||
results.push(renderNonLink({ text: chunk, key: 0 }));
|
count += 1;
|
||||||
|
results.push(renderNonLink({ text: chunk, key: count }));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue