@infrab4a/connect 4.0.0-beta.23 → 4.0.0-beta.24

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.
@@ -2019,7 +2019,9 @@ class HomeFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
2019
2019
  interceptors,
2020
2020
  });
2021
2021
  this.homeCategoryGroupToPlain = (homeCategoryGroup) => ({
2022
- category: homeCategoryGroup?.category?.toPlain(),
2022
+ category: homeCategoryGroup?.category?.toPlain
2023
+ ? homeCategoryGroup?.category?.toPlain()
2024
+ : homeCategoryGroup?.category,
2023
2025
  products: homeCategoryGroup?.products?.map((product) => product?.toPlain()).filter(Boolean) || [],
2024
2026
  });
2025
2027
  this.plainToHomeCategoryGroup = (homeCategoryGroup) => ({
@@ -2031,7 +2033,6 @@ class HomeFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
2031
2033
  const { fromFirestore, toFirestore } = super.buildModelInstance();
2032
2034
  return {
2033
2035
  toFirestore: (data) => {
2034
- console.log(data);
2035
2036
  const modifiedData = this.homeToFirestore(data);
2036
2037
  return toFirestore(modifiedData);
2037
2038
  },