File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
WooCommerce/Classes/ViewRelated/Products/Edit Product Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -339,12 +339,9 @@ final class ProductFormViewController<ViewModel: ProductFormViewModelProtocol>:
339339 ServiceLocator . analytics. track ( . productDetailViewGroupedProductsTapped)
340340 editGroupedProducts ( )
341341 break
342- case . variations:
342+ case . variations( let row ) :
343343 ServiceLocator . analytics. track ( . productDetailViewVariationsTapped)
344- guard let product = product as? EditableProductModel else {
345- return
346- }
347- guard product. product. variations. isNotEmpty || isAddProductVariationsEnabled else {
344+ guard let product = product as? EditableProductModel , row. isActionable else {
348345 return
349346 }
350347 let variationsViewController = ProductVariationsViewController ( product: product. product,
You can’t perform that action at this time.
0 commit comments