From 92fa485e4a77bde1de572723df57816b42104ebb Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Wed, 28 May 2025 13:57:31 +0200 Subject: [PATCH] ff --- admin-dashboard.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index 8891c42..a1097b2 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -1486,7 +1486,9 @@ function updateBannerPreview() { } // Update the banner content with the generated HTML - bannerPreviewContent.innerHTML = bannerContent; + if (bannerPreviewContent) { + bannerPreviewContent.innerHTML = bannerContent; + } // Add event listeners for width/height changes const imageWidthInput = document.getElementById('bannerImageWidth'); @@ -1502,7 +1504,9 @@ function updateBannerPreview() { } // Make sure the preview is visible - bannerPreview.style.visibility = 'visible'; + if (bannerPreview) { + bannerPreview.style.visibility = 'visible'; + } } // Apply preset