add key to reply msgs

This commit is contained in:
Martti Malmi 2021-08-14 14:48:28 +03:00
parent 6e37c457a6
commit 513d7b62ad

View File

@ -285,7 +285,7 @@ msg => {
</div> </div>
`: ''} `: ''}
${(this.props.showReplies || this.state.showReplyForm) && this.state.sortedReplies && this.state.sortedReplies.length ? this.state.sortedReplies.map(r => ${(this.props.showReplies || this.state.showReplyForm) && this.state.sortedReplies && this.state.sortedReplies.length ? this.state.sortedReplies.map(r =>
html`<${PublicMessage} measure=${this.props.measure} hash=${r.hash} asReply=${true} showName=${true} showReplies=${true} />` html`<${PublicMessage} measure=${this.props.measure} key=${r.hash} hash=${r.hash} asReply=${true} showName=${true} showReplies=${true} />`
) : ''} ) : ''}
${this.state.showReplyForm ? html` ${this.state.showReplyForm ? html`
<${PublicMessageForm} replyingTo=${this.props.hash} /> <${PublicMessageForm} replyingTo=${this.props.hash} />