Skip to content

Commit e741554

Browse files
authored
fix(processing): only include .name when it exists (#833)
1 parent 5fbf141 commit e741554

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/generators/web/utils/processing.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ export async function processJSXEntries(
188188

189189
// Replace template placeholders with actual content
190190
const renderedHtml = populateWithEvaluation(template, {
191-
title: `${data.heading.data.name} | ${titleSuffix}`,
191+
title: data.heading.data.name
192+
? `${data.heading.data.name} | ${titleSuffix}`
193+
: titleSuffix,
192194
dehydrated: serverBundle.pages.get(`${data.api}.js`) ?? '',
193195
importMap: clientBundle.importMap?.replaceAll('/', root) ?? '',
194196
entrypoint: `${data.api}.js?${randomUUID()}`,

0 commit comments

Comments
 (0)