[FIX] Cannot read property 'render' of undefined on markdown (#4549)
This commit is contained in:
parent
b60577d8ee
commit
0974bbe6ff
|
@ -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