Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Prevent showing edit product details link when in multiple products c…
Browse files Browse the repository at this point in the history
…ontext (#9741)
  • Loading branch information
roykho authored Jun 7, 2023
1 parent 488afff commit c378f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/editor-components/edit-product-link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const EditProductLink = ( props: EditProductLinkProps ): JSX.Element | null => {
const product = productDataContext.product || {};
const productId = product.id || props.productId || 0;

if ( ! productId ) {
if ( ! productId || productId === 1 ) {
return null;
}

Expand Down

0 comments on commit c378f92

Please sign in to comment.