From 896ca32d5357d30825f885ed91c9929d3baea361 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Tue, 15 Aug 2023 13:44:50 -0500 Subject: [PATCH] fix: ensure displayName is a string --- packages/astro/src/runtime/server/render/component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/runtime/server/render/component.ts b/packages/astro/src/runtime/server/render/component.ts index beb71d008..0a6f6288b 100644 --- a/packages/astro/src/runtime/server/render/component.ts +++ b/packages/astro/src/runtime/server/render/component.ts @@ -89,7 +89,7 @@ async function renderFrameworkComponent( const { renderers, clientDirectives } = result; const metadata: AstroComponentMetadata = { astroStaticSlot: true, - displayName, + displayName: typeof displayName === 'string' ? displayName : '', }; const { hydration, isPage, props } = extractDirectives(_props, clientDirectives);