From 2d3c035bf9ef94760beb5903fd488d6835abeaec Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 9 Nov 2022 23:34:23 -0600 Subject: [PATCH] Fixes failing mdx test (#5344) --- packages/astro/src/runtime/server/jsx.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/runtime/server/jsx.ts b/packages/astro/src/runtime/server/jsx.ts index 35775a3c3c..4cd5c4905c 100644 --- a/packages/astro/src/runtime/server/jsx.ts +++ b/packages/astro/src/runtime/server/jsx.ts @@ -59,8 +59,12 @@ export async function renderJSX(result: SSRResult, vnode: any): Promise { // Extract the skip from the props, if we've already attempted a previous render let skip: Skip; - if (vnode.props[Skip.symbol]) { - skip = vnode.props[Skip.symbol]; + if(vnode.props) { + if (vnode.props[Skip.symbol]) { + skip = vnode.props[Skip.symbol]; + } else { + skip = new Skip(vnode); + } } else { skip = new Skip(vnode); }