diff --git a/src/components/InlineCodeBlock/WrappedText.js b/src/components/InlineCodeBlock/WrappedText.js index be693e534b11..506ca51a4cdf 100644 --- a/src/components/InlineCodeBlock/WrappedText.js +++ b/src/components/InlineCodeBlock/WrappedText.js @@ -36,6 +36,10 @@ const defaultProps = { }; const WrappedText = (props) => { + if (!_.isString(props.children)) { + return null; + } + const textMatrix = getTextMatrix(props.children); return ( <>