0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

fix(#8434): fix renderToFinalDestination handling (#8440)

This commit is contained in:
Nate Moore 2023-09-06 15:38:48 -05:00 committed by GitHub
parent b3cf1b3276
commit b92d066b73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix issue where `renderToFinalDestination` would throw in internal Astro code

View file

@ -18,6 +18,7 @@ export async function renderChild(destination: RenderDestination, child: any) {
}); });
}); });
for (const childRender of childRenders) { for (const childRender of childRenders) {
if (!childRender) continue;
await childRender.renderToFinalDestination(destination); await childRender.renderToFinalDestination(destination);
} }
} else if (typeof child === 'function') { } else if (typeof child === 'function') {