Skip to content

Commit

Permalink
fix(#8434): fix renderToFinalDestination handling (#8440)
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Sep 6, 2023
1 parent b3cf1b3 commit b92d066
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-fans-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix issue where `renderToFinalDestination` would throw in internal Astro code
1 change: 1 addition & 0 deletions packages/astro/src/runtime/server/render/any.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export async function renderChild(destination: RenderDestination, child: any) {
});
});
for (const childRender of childRenders) {
if (!childRender) continue;
await childRender.renderToFinalDestination(destination);
}
} else if (typeof child === 'function') {
Expand Down

0 comments on commit b92d066

Please sign in to comment.