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,8 +59,12 @@ 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[Skip.symbol]) {
|
if(vnode.props) {
|
||||||
skip = vnode.props[Skip.symbol];
|
if (vnode.props[Skip.symbol]) {
|
||||||
|
skip = vnode.props[Skip.symbol];
|
||||||
|
} else {
|
||||||
|
skip = new Skip(vnode);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
skip = new Skip(vnode);
|
skip = new Skip(vnode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue