From 841c863598afd818ce19963c806ad6055c72873f Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Tue, 19 Jul 2022 14:28:09 -1000 Subject: [PATCH] Fix crash when parsing undefined as string for inline code blocks --- src/components/InlineCodeBlock/WrappedText.js | 4 ++++ 1 file changed, 4 insertions(+) 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 ( <>