FIX: prevents crash when to be unescaped emoji is not a string (#9189)

I couldn't get a repro so this is a shot in the dark and doesn't solve the root issue, but should prevent topic view from crashing.
This commit is contained in:
Joffrey JAFFEUX 2020-03-12 13:59:43 +01:00 committed by GitHub
parent 8290856a4b
commit d2bb127e2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ function isReplacableInlineEmoji(string, index, inlineEmoji) {
}
export function performEmojiUnescape(string, opts) {
if (!string) {
if (!string || typeof string !== "string") {
return;
}