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:
parent
d82b392030
commit
2d3c035bf9
1 changed files with 6 additions and 2 deletions
|
@ -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
|
// Extract the skip from the props, if we've already attempted a previous render
|
||||||
let skip: Skip;
|
let skip: Skip;
|
||||||
|
if(vnode.props) {
|
||||||
if (vnode.props[Skip.symbol]) {
|
if (vnode.props[Skip.symbol]) {
|
||||||
skip = vnode.props[Skip.symbol];
|
skip = vnode.props[Skip.symbol];
|
||||||
} else {
|
} else {
|
||||||
skip = new Skip(vnode);
|
skip = new Skip(vnode);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
skip = new Skip(vnode);
|
||||||
|
}
|
||||||
|
|
||||||
return renderJSXVNode(result, vnode, skip);
|
return renderJSXVNode(result, vnode, skip);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue