From 75bf08d2c9943e549aaebdc0a916133993cef8cb Mon Sep 17 00:00:00 2001 From: Tung Du Date: Fri, 11 Mar 2022 08:17:37 +0700 Subject: [PATCH] Fix: Exclude Button block from the Empty Mini Cart Contents block insterter (https://github.com/woocommerce/woocommerce-blocks/pull/6034) --- .../mini-cart-contents/inner-blocks/allowed-blocks.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/allowed-blocks.ts b/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/allowed-blocks.ts index b5bbb70133d..a6f58ce4a14 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/allowed-blocks.ts +++ b/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/mini-cart-contents/inner-blocks/allowed-blocks.ts @@ -19,6 +19,7 @@ const EXCLUDED_BLOCKS: readonly string[] = [ 'core/post-comments-count', 'core/comments-pagination', 'core/post-navigation-link', + 'core/button', ]; export const getMiniCartAllowedBlocks = (): string[] =>