@infrab4a/connect-angular 5.4.7-beta.0 → 5.4.10
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.
- package/esm2020/services/catalog/helpers/brand-manager.helper.mjs +7 -2
- package/fesm2015/infrab4a-connect-angular.mjs +5 -3
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +5 -0
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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: {
|