소스 검색

fix(core): Filter out deleted options groups (#2047)

~gio 3 년 전
부모
커밋
d93203c4ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/core/src/service/services/product-variant.service.ts

+ 1 - 1
packages/core/src/service/services/product-variant.service.ts

@@ -741,7 +741,7 @@ export class ProductVariantService {
         if (
             !samplesEach(
                 optionIds,
-                optionGroups.map(g => g.options.map(o => o.id)),
+                activeOptions.map(g => g.options.map(o => o.id)),
             )
         ) {
             this.throwIncompatibleOptionsError(optionGroups);