fix: Prevent update doc title from partial if not present (#2244)

fixes #2243
This commit is contained in:
Igor Brasileiro
2024-01-12 18:47:40 +01:00
committed by GitHub
parent ca8338e04d
commit e7bf6aca62
5 changed files with 69 additions and 1 deletions
+3 -1
View File
@@ -710,7 +710,9 @@ export async function applyPartials(res: Response): Promise<void> {
}
// Update <head>
document.title = doc.title;
if (doc.title) {
document.title = doc.title;
}
// Needs to be converted to an array otherwise somehow <link>-tags
// are missing.