Prevent showing edit product details link when in multiple products context (https://github.com/woocommerce/woocommerce-blocks/pull/9741)

This commit is contained in:
Roy Ho 2023-06-07 05:43:04 -07:00 committed by GitHub
parent af09b0c9b8
commit 70e3533467
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ const EditProductLink = ( props: EditProductLinkProps ): JSX.Element | null => {
const product = productDataContext.product || {}; const product = productDataContext.product || {};
const productId = product.id || props.productId || 0; const productId = product.id || props.productId || 0;
if ( ! productId ) { if ( ! productId || productId === 1 ) {
return null; return null;
} }