From e1f5281723992ae1428c8385bcb9ef95daef1429 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Wed, 28 May 2025 13:55:48 +0200 Subject: [PATCH] g --- admin-dashboard.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index c6a992f..8891c42 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -1460,7 +1460,9 @@ function updateBannerPreview() { if (imagePreviewContainer) { imagePreviewContainer.style.display = 'none'; } - bannerPreview.classList.remove('with-image'); + if (bannerPreview) { + bannerPreview.classList.remove('with-image'); + } } // Apply template styles to the banner preview