Skip to content

Commit

Permalink
Merge pull request #7111 from TheThingsNetwork/fix/messages-duplicate…
Browse files Browse the repository at this point in the history
…-key

Address duplicate key issue
  • Loading branch information
kschiffer authored May 28, 2024
2 parents f17793b + 20b47dd commit 950b5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webui/lib/components/message/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const Message = ({
const contentWithMarkdown = formatMessage(content, vals)
return renderContent(
reactStringReplace(contentWithMarkdown, /`([^`[]+)`/g, (match, i) => (
<code key={i}>{match}</code>
<code key={`${match}-${i}`}>{match}</code>
)),
component,
rest,
Expand Down

0 comments on commit 950b5c3

Please sign in to comment.