@infrab4a/connect-angular 4.2.9-beta.2 → 4.2.10-beta.1
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/home-shop.service.mjs +19 -21
- package/fesm2015/infrab4a-connect-angular.mjs +18 -20
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +18 -20
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1953,26 +1953,24 @@ class HomeShopService {
|
|
|
1953
1953
|
this.defaultShop = defaultShop;
|
|
1954
1954
|
this.buildCategoryGroupWithRequiredData = (group) => ({
|
|
1955
1955
|
category: Category.toInstance(pick(group?.category?.toPlain() || {}, ['id', 'name', 'slug', 'conditions'])),
|
|
1956
|
-
products: group?.products?.map((product) => {
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
]));
|
|
1975
|
-
}) || [],
|
|
1956
|
+
products: group?.products?.map((product) => Product.toInstance(pick(product?.toPlain() || {}, [
|
|
1957
|
+
'id',
|
|
1958
|
+
'price',
|
|
1959
|
+
'reviews',
|
|
1960
|
+
'hasVariants',
|
|
1961
|
+
'slug',
|
|
1962
|
+
'sku',
|
|
1963
|
+
'stock',
|
|
1964
|
+
'costPrice',
|
|
1965
|
+
'images',
|
|
1966
|
+
'miniatures',
|
|
1967
|
+
'name',
|
|
1968
|
+
'weight',
|
|
1969
|
+
'rate',
|
|
1970
|
+
'type',
|
|
1971
|
+
'brand',
|
|
1972
|
+
'tags',
|
|
1973
|
+
]))) || [],
|
|
1976
1974
|
});
|
|
1977
1975
|
}
|
|
1978
1976
|
getHomeData() {
|