Skip to content

Commit 26ab4c5

Browse files
authored
[docs] Avoid unwanted undefined in page title (#45718)
1 parent e51df23 commit 26ab4c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/src/modules/components/AppLayoutDocs.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ export default function AppLayoutDocs(props) {
156156
}}
157157
/>
158158
<AdManager {...(hasTabs && { classSelector: '.component-tabs' })}>
159-
<Head title={`${title} - ${productName}`} description={description} card={card} />
159+
<Head
160+
title={`${title}${productName ? ` - ${productName}` : ''}`}
161+
description={description}
162+
card={card}
163+
/>
160164
<Main disableToc={disableToc}>
161165
{/*
162166
Render the TOCs first to avoid layout shift when the HTML is streamed.

0 commit comments

Comments
 (0)