diff --git a/src/app/core/services/catalog/catalog.service.ts b/src/app/core/services/catalog/catalog.service.ts index 13f3037..9f103f7 100644 --- a/src/app/core/services/catalog/catalog.service.ts +++ b/src/app/core/services/catalog/catalog.service.ts @@ -92,7 +92,6 @@ export class CatalogService extends BaseApiService { catalogItemId: number, payload: { selected_values: Record; - excluded_variant_ids?: number[]; cart_item_id?: number | null; }, ): Observable { diff --git a/src/app/shared/components/product-ticket-selector/product-ticket-selector.component.spec.ts b/src/app/shared/components/product-ticket-selector/product-ticket-selector.component.spec.ts index 08038fe..5ee18cf 100644 --- a/src/app/shared/components/product-ticket-selector/product-ticket-selector.component.spec.ts +++ b/src/app/shared/components/product-ticket-selector/product-ticket-selector.component.spec.ts @@ -92,7 +92,6 @@ describe('ProductTicketSelectorComponent', () => { expect(catalogService.getVariantOptions).toHaveBeenLastCalledWith(7, { selected_values: { sector: 'a' }, - excluded_variant_ids: [], cart_item_id: null, }); expect(fixture.componentInstance['rows']()[0].status).toBe('selecting'); diff --git a/src/app/shared/components/product-ticket-selector/product-ticket-selector.component.ts b/src/app/shared/components/product-ticket-selector/product-ticket-selector.component.ts index dc3fd46..069a942 100644 --- a/src/app/shared/components/product-ticket-selector/product-ticket-selector.component.ts +++ b/src/app/shared/components/product-ticket-selector/product-ticket-selector.component.ts @@ -199,16 +199,9 @@ export class ProductTicketSelectorComponent { error: null, }); - const excludedVariantIds = this.rows() - .filter((candidate) => candidate.id !== rowId) - .flatMap((candidate) => { - const variantId = candidate.reservedVariantId ?? candidate.variantId; - return variantId === null ? [] : [variantId]; - }); const request = this.catalogService .getVariantOptions(this.productId(), { selected_values: selectedValues, - excluded_variant_ids: excludedVariantIds, cart_item_id: row.cartItemId, }) .subscribe({