File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
WooCommerce/Classes/ViewRelated/Products/Variations Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,11 @@ final class GenerateAllVariationsUseCase {
5858 onStateChanged ( . creating)
5959 self . createVariationsRemotely ( for: product, variations: variationsToGenerate) { result in
6060 switch result {
61- case . success( let generatedVariations ) :
61+ case . success( let allVariations ) :
6262
6363 // Updates the current product with the up-to-date list of variations IDs.
6464 // This is needed in order to reflect variations count changes back to other screens.
65- let updatedProduct = product. copy ( variations: product . variations + generatedVariations . map { $0. productVariationID } )
65+ let updatedProduct = product. copy ( variations: allVariations . map { $0. productVariationID } )
6666 onStateChanged ( . finished( true , updatedProduct) )
6767
6868 case . failure( let error) :
Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ private extension ProductVariationStore {
168168 }
169169
170170 /// Bulk creates the provided array of product variations.
171+ /// Returns all product variations on it's completion block.
171172 ///
172173 func createProductVariations( siteID: Int64 ,
173174 productID: Int64 ,
You can’t perform that action at this time.
0 commit comments