mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Fix React warnings about missing key for edited messages
This uses a fragment instead of an array to avoid the need for key attributes.
This commit is contained in:
parent
266162fa32
commit
e90009772d
1 changed files with 4 additions and 1 deletions
|
@ -410,7 +410,10 @@ export default class TextualBody extends React.Component {
|
|||
ref: this._content,
|
||||
});
|
||||
if (this.props.replacingEventId) {
|
||||
body = [body, this._renderEditedMarker()];
|
||||
body = <>
|
||||
{body}
|
||||
{this._renderEditedMarker()}
|
||||
</>;
|
||||
}
|
||||
|
||||
if (this.props.highlightLink) {
|
||||
|
|
Loading…
Reference in a new issue