From e7e9021e3ffa35f5d4ba6ee2a7a2287bd53cd7a0 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 30 Jun 2021 12:25:02 -0700 Subject: [PATCH] Fix duplicate key in Linkify --- ts/components/conversation/Linkify.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/components/conversation/Linkify.tsx b/ts/components/conversation/Linkify.tsx index 320a65fef77..fb8948f5c53 100644 --- a/ts/components/conversation/Linkify.tsx +++ b/ts/components/conversation/Linkify.tsx @@ -85,7 +85,8 @@ export class Linkify extends React.Component { 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; }