This commit is contained in:
Tung Du 2023-01-10 17:14:43 +07:00 committed by GitHub
parent 88b19bceb4
commit 8662d853f4
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ const withSidebarNotices = createHigherOrderComponent(
// Show sidebar notices only when a WooCommerce block is selected. // Show sidebar notices only when a WooCommerce block is selected.
if ( ! blockName.startsWith( 'woocommerce/' ) || ! isBlockSelected ) { if ( ! blockName.startsWith( 'woocommerce/' ) || ! isBlockSelected ) {
return <BlockEdit { ...props } />; return <BlockEdit key="edit" { ...props } />;
} }
const [ const [
@ -115,7 +115,7 @@ const withSidebarNotices = createHigherOrderComponent(
</InspectorControls> </InspectorControls>
) } ) }
<BlockEdit { ...props } /> <BlockEdit key="edit" { ...props } />
</> </>
); );
}, },