@infrab4a/connect-angular 4.3.6-beta.3 → 4.3.6-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1768,7 +1768,7 @@ class CategoryService {
1768
1768
  .findCatalog({
1769
1769
  filters: await this.categoryStructureAdapter.buildProductFilterByCategory(category),
1770
1770
  fields: ['brand'],
1771
- }, options?.mainGender || this.shop === Shops.MENSMARKET ? 'male' : 'female')
1771
+ }, options?.mainGender ? options?.mainGender : this.shop === Shops.MENSMARKET ? 'male' : 'female')
1772
1772
  .then(({ data }) => Object.keys(data.map((product) => product.brand).reduce((brands, brand) => ({ ...brands, [brand]: true }), {})));
1773
1773
  return this.categoryRepository
1774
1774
  .find({ filters: { brandCategory: true, shop: options?.shop || this.shop }, orderBy: { name: 'asc' } })