diff options
author | Florian Orben <florian.orben@gmail.com> | 2015-12-01 18:43:08 +0100 |
---|---|---|
committer | Florian Orben <florian.orben@gmail.com> | 2015-12-01 18:43:08 +0100 |
commit | dd079733fd16cfd182c97219af10c46336d0f910 (patch) | |
tree | 4ea1a08d17eea940b7d275186a5555faedbe0d85 /web | |
parent | 2b2ee62a1df0504fff3f3e0e59966db1cd297531 (diff) | |
download | chat-dd079733fd16cfd182c97219af10c46336d0f910.tar.gz chat-dd079733fd16cfd182c97219af10c46336d0f910.tar.bz2 chat-dd079733fd16cfd182c97219af10c46336d0f910.zip |
PLT-1182: "Recent Mention" search brings up username as "[username]undefined"
Diffstat (limited to 'web')
-rw-r--r-- | web/react/utils/text_formatting.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/text_formatting.jsx b/web/react/utils/text_formatting.jsx index 3a912fd75..f0bd46f9d 100644 --- a/web/react/utils/text_formatting.jsx +++ b/web/react/utils/text_formatting.jsx @@ -188,7 +188,7 @@ function highlightCurrentMentions(text, tokens) { const newAlias = `MM_SELFMENTION${index}`; newTokens.set(newAlias, { - value: `<span class='mention-highlight'>${alias}</span>` + token.extraText, + value: `<span class='mention-highlight'>${alias}</span>` + (token.extraText || ''), originalText: token.originalText }); output = output.replace(alias, newAlias); |