mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 01:35:49 +03:00
silence react warning when showing edited marker, by also giving the body a key
This commit is contained in:
parent
4c94b398d3
commit
76ceee0e6c
1 changed files with 2 additions and 2 deletions
|
@ -541,8 +541,8 @@ export function bodyToHtml(content, highlights, opts={}) {
|
|||
});
|
||||
|
||||
return isDisplayedWithHtml ?
|
||||
<span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" /> :
|
||||
<span className={className} dir="auto">{ strippedBody }</span>;
|
||||
<span key="body" className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" /> :
|
||||
<span key="body" className={className} dir="auto">{ strippedBody }</span>;
|
||||
}
|
||||
|
||||
export function emojifyText(text, addAlt) {
|
||||
|
|
Loading…
Reference in a new issue