diff --git a/app/containers/markdown/index.tsx b/app/containers/markdown/index.tsx index 1fd04eb36..9a58bb5ab 100644 --- a/app/containers/markdown/index.tsx +++ b/app/containers/markdown/index.tsx @@ -350,7 +350,7 @@ class Markdown extends PureComponent { 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; } }