From c3f293511536d1ebbac0f50caaf74cded28d0025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Mon, 17 Jul 2023 09:48:20 +0200 Subject: [PATCH] Keep both variations of the template part name when excluding them --- assets/js/blocks/mini-cart/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/blocks/mini-cart/index.tsx b/assets/js/blocks/mini-cart/index.tsx index 40cd601d329..2fadfc04cef 100644 --- a/assets/js/blocks/mini-cart/index.tsx +++ b/assets/js/blocks/mini-cart/index.tsx @@ -61,7 +61,10 @@ addFilter( ...blockSettings, variations: blockSettings.variations.map( ( variation: { name: string } ) => { - if ( variation.name === 'mini-cart' ) { + if ( + variation.name === 'instance_mini-cart' || + variation.name === 'mini-cart' + ) { return { ...variation, scope: [],