@infrab4a/connect-angular 4.2.9-beta.2 → 4.2.9

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.
@@ -1953,26 +1953,23 @@ 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
- console.log(product);
1958
- return Product.toInstance(pick(product?.toPlain() || {}, [
1959
- 'id',
1960
- 'price',
1961
- 'reviews',
1962
- 'hasVariants',
1963
- 'slug',
1964
- 'sku',
1965
- 'stock',
1966
- 'costPrice',
1967
- 'images',
1968
- 'miniatures',
1969
- 'name',
1970
- 'weight',
1971
- 'rate',
1972
- 'type',
1973
- 'brand',
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
+ ]))) || [],
1976
1973
  });
1977
1974
  }
1978
1975
  getHomeData() {