0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

Fixes failing mdx test (#5344)

This commit is contained in:
Matthew Phillips 2022-11-09 23:34:23 -06:00 committed by GitHub
parent d82b392030
commit 2d3c035bf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,11 +59,15 @@ export async function renderJSX(result: SSRResult, vnode: any): Promise<any> {
// Extract the skip from the props, if we've already attempted a previous render
let skip: Skip;
if(vnode.props) {
if (vnode.props[Skip.symbol]) {
skip = vnode.props[Skip.symbol];
} else {
skip = new Skip(vnode);
}
} else {
skip = new Skip(vnode);
}
return renderJSXVNode(result, vnode, skip);
}