Przeglądaj źródła

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

~gio 2 lat temu
rodzic
commit
d93203c4ec

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