Fix: unable to customize All Products block (https://github.com/woocommerce/woocommerce-blocks/pull/8140)
This commit is contained in:
parent
88b19bceb4
commit
8662d853f4
|
@ -36,7 +36,7 @@ const withSidebarNotices = createHigherOrderComponent(
|
|||
|
||||
// Show sidebar notices only when a WooCommerce block is selected.
|
||||
if ( ! blockName.startsWith( 'woocommerce/' ) || ! isBlockSelected ) {
|
||||
return <BlockEdit { ...props } />;
|
||||
return <BlockEdit key="edit" { ...props } />;
|
||||
}
|
||||
|
||||
const [
|
||||
|
@ -115,7 +115,7 @@ const withSidebarNotices = createHigherOrderComponent(
|
|||
</InspectorControls>
|
||||
) }
|
||||
|
||||
<BlockEdit { ...props } />
|
||||
<BlockEdit key="edit" { ...props } />
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue