File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
packages/core/core-flows/src/product/steps Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,12 @@ export const processProductOptionsForImportStep = createStep(
3737
3838 for ( const product of data . products ) {
3939 if ( product . options && product . options . length > 0 ) {
40- // Create the product options
4140 const createdOptions = await productService . createProductOptions (
4241 product . options
4342 )
4443
4544 createdOptionIds . push ( ...createdOptions . map ( ( opt ) => opt . id ) )
4645
47- // Build a map of option title to option ID
4846 const optionTitleToIdMap = new Map < string , string > ( )
4947 createdOptions . forEach ( ( option ) => {
5048 optionTitleToIdMap . set ( option . title , option . id )
@@ -72,7 +70,6 @@ export const processProductOptionsForImportStep = createStep(
7270 Modules . PRODUCT
7371 )
7472
75- // Delete created options (compensation)
7673 await productService . deleteProductOptions ( createdOptionIds )
7774 }
7875)
You can’t perform that action at this time.
0 commit comments