Prevent showing edit product details link when in multiple products context (https://github.com/woocommerce/woocommerce-blocks/pull/9741)
This commit is contained in:
parent
af09b0c9b8
commit
70e3533467
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue