Skip to content

Commit 271b3b1

Browse files
committed
default exclusive in csv import flow
1 parent 30af643 commit 271b3b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/core-flows/src/product/steps/process-product-options-for-import.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ export const processProductOptionsForImportStep = createStep(
4646

4747
const createdOptions =
4848
allOptions.length > 0
49-
? await productService.createProductOptions(allOptions)
49+
? await productService.createProductOptions(allOptions.map(option => ({
50+
...option,
51+
is_exclusive: true // Until we change the CSV logic to pass option id in there, we have to default to exclusive
52+
})))
5053
: []
5154
const createdOptionIds = createdOptions.map((opt) => opt.id)
5255

0 commit comments

Comments
 (0)