From 54d3ab3455407e7894196be48f695d2e15d64111 Mon Sep 17 00:00:00 2001 From: igorbrasileiro Date: Fri, 12 Jan 2024 11:47:08 -0300 Subject: [PATCH] Prevent update doc title from partial if not present --- src/runtime/entrypoints/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/entrypoints/main.ts b/src/runtime/entrypoints/main.ts index 96e2f089036..de401bfb905 100644 --- a/src/runtime/entrypoints/main.ts +++ b/src/runtime/entrypoints/main.ts @@ -710,7 +710,9 @@ export async function applyPartials(res: Response): Promise { } // Update - document.title = doc.title; + if (doc.title) { + document.title = doc.title; + } // Needs to be converted to an array otherwise somehow -tags // are missing.