Fix duplicate key in Linkify

This commit is contained in:
Fedor Indutny 2021-06-30 12:25:02 -07:00 committed by GitHub
parent 71572db7a9
commit e7e9021e3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ export class Linkify extends React.Component<Props> {
chunkData.forEach(({ chunk, matchData }) => {
if (matchData.length === 0) {
results.push(renderNonLink({ text: chunk, key: 0 }));
count += 1;
results.push(renderNonLink({ text: chunk, key: count }));
return;
}