From 999a89e38f7f11fe0d1245eb6af6f93f2459882b Mon Sep 17 00:00:00 2001 From: Jason Crist Date: Wed, 10 Nov 2021 15:15:25 -0500 Subject: [PATCH] Fixed null-ref error when previewing colors for any theme but Skatepark --- blockbase/inc/customizer/wp-customize-colors-preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockbase/inc/customizer/wp-customize-colors-preview.js b/blockbase/inc/customizer/wp-customize-colors-preview.js index eb77b176b6..2b2ea652b6 100644 --- a/blockbase/inc/customizer/wp-customize-colors-preview.js +++ b/blockbase/inc/customizer/wp-customize-colors-preview.js @@ -25,7 +25,7 @@ function blockBaseUpdateColorsPreview( palette ) { ); styleElement.innerHTML = innerHTML; - if ( userColorDuotone ) { + if ( window.userColorDuotone ) { const colors = palette.map( ( paletteItem ) => paletteItem.color ); //we are inverting the order when we have a darker background so that duotone looks good. colors.sort( ( first, second ) => {