diff options
author | 2023-09-06 15:38:48 -0500 | |
---|---|---|
committer | 2023-09-06 15:38:48 -0500 | |
commit | b92d066b737f64f08a9cf293bd07c9263ef8f32d (patch) | |
tree | 114ace024364045bc875d24257b9233c2cc2667d | |
parent | b3cf1b32765c76cfc90e497a68280ad52f02cb1f (diff) | |
download | astro-b92d066b737f64f08a9cf293bd07c9263ef8f32d.tar.gz astro-b92d066b737f64f08a9cf293bd07c9263ef8f32d.tar.zst astro-b92d066b737f64f08a9cf293bd07c9263ef8f32d.zip |
fix(#8434): fix renderToFinalDestination handling (#8440)
-rw-r--r-- | .changeset/tame-fans-happen.md | 5 | ||||
-rw-r--r-- | packages/astro/src/runtime/server/render/any.ts | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/tame-fans-happen.md b/.changeset/tame-fans-happen.md new file mode 100644 index 000000000..b3feaa8b7 --- /dev/null +++ b/.changeset/tame-fans-happen.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix issue where `renderToFinalDestination` would throw in internal Astro code diff --git a/packages/astro/src/runtime/server/render/any.ts b/packages/astro/src/runtime/server/render/any.ts index 89c927576..0b61f919c 100644 --- a/packages/astro/src/runtime/server/render/any.ts +++ b/packages/astro/src/runtime/server/render/any.ts @@ -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') { |