make chat list element key unique

This commit is contained in:
KDSBrowne 2021-02-05 01:07:24 +00:00
parent c0c5a87e3c
commit 9307215a2d

View File

@ -289,7 +289,7 @@ class MessageList extends Component {
} }
}} }}
className={styles.messageListWrapper} className={styles.messageListWrapper}
key="chat-list" key={_.uniqueId('chat-list-')}
data-test="chatMessages" data-test="chatMessages"
ref={node => this.messageListWrapper = node} ref={node => this.messageListWrapper = node}
> >