@infrab4a/connect-angular 5.4.7 → 5.4.11

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.
@@ -1920,10 +1920,15 @@ class BrandManagerHelper {
1920
1920
  return '';
1921
1921
  }
1922
1922
  async fetchBrandsOnly(options) {
1923
+ let filters = {};
1924
+ if (options.category) {
1925
+ filters = await this.productCatalog.categoryStructureAdapter.buildProductFilterByCategory(options.category);
1926
+ }
1923
1927
  return this.productCatalog.productRepository
1924
1928
  .findCatalog({
1925
1929
  fields: ['id'],
1926
1930
  filters: {
1931
+ ...filters,
1927
1932
  published: { operator: Where.EQUALS, value: true },
1928
1933
  },
1929
1934
  options: {