diff --git a/web/client.ts b/web/client.ts index fdba5d29..7c7256f3 100644 --- a/web/client.ts +++ b/web/client.ts @@ -1111,7 +1111,7 @@ export class Client { const bodyEl = this.parent.parentElement; if (bodyEl) { bodyEl.removeAttribute("class"); - if (enrichedMeta.pageDecoration.cssClasses) { + if (enrichedMeta.pageDecoration?.cssClasses) { bodyEl.className = enrichedMeta.pageDecoration.cssClasses.join(" ") .replaceAll(/[^a-zA-Z0-9-_ ]/g, ""); }