提交 a9936ddd 编写于 作者: A Alex Ross

Improve isMarkdownString check

上级 878ed51e
......@@ -1276,7 +1276,7 @@ export class MarkdownString {
if (thing instanceof MarkdownString) {
return true;
}
return (thing !== undefined) && thing.appendCodeblock && thing.appendMarkdown && thing.appendText && (thing.value !== undefined);
return thing && thing.appendCodeblock && thing.appendMarkdown && thing.appendText && (thing.value !== undefined);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册