diff --git a/packages/astro/src/runtime/server/render/component.ts b/packages/astro/src/runtime/server/render/component.ts index 69fcfa160..7896a4bd2 100644 --- a/packages/astro/src/runtime/server/render/component.ts +++ b/packages/astro/src/runtime/server/render/component.ts @@ -244,9 +244,7 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr const childSlots = Object.values(children).join(''); const iterable = renderAstroTemplateResult( await renderTemplate`<${Tag}${internalSpreadAttributes(props)}${markHTMLString( - childSlots === '' && voidElementNames.test(Tag) - ? `/>` - : `>${childSlots}` + childSlots === '' && voidElementNames.test(Tag) ? `/>` : `>${childSlots}` )}` ); html = '';