[FIX] Cannot read property 'render' of undefined on markdown (#4549)
This commit is contained in:
parent
f213151db0
commit
43ebae9b19
|
@ -350,7 +350,7 @@ class Markdown extends PureComponent<IMarkdownProps, any> {
|
|||
let ast = parser.parse(m);
|
||||
ast = mergeTextNodes(ast);
|
||||
this.isMessageContainsOnlyEmoji = isOnlyEmoji(m) && emojiCount(m) <= 3;
|
||||
return this.renderer.render(ast);
|
||||
return this.renderer?.render(ast) || null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue