A platform for community discussion. Free, open, simple.
FIX: check if dominant color is set before updating site theme color (#22658)
David Battersby3c1dd4a62cb4
diff --git a/app/assets/javascripts/discourse/app/components/d-lightbox.js b/app/assets/javascripts/discourse/app/components/d-lightbox.jsindex a35d034138f..6affacbbd75 100644--- a/app/assets/javascripts/discourse/app/components/d-lightbox.js+++ b/app/assets/javascripts/discourse/app/components/d-lightbox.js@@ -249,7 +249,9 @@ export default class DLightbox extends Component {#onAfterItemChange() {this.isLoading = false;- setSiteThemeColor(this.currentItem.dominantColor);+ if (this.currentItem.dominantColor) {+ setSiteThemeColor(this.currentItem.dominantColor);+ }setCarouselScrollPosition({behavior: "smooth",