瀏覽代碼

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);