From 357a50f8203dc7ea9dcdb0bbacc5f4d5319dac63 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 31 Jul 2024 13:06:10 +0200 Subject: [PATCH] Fix JS error --- web/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ""); }