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

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;
}