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