@infrab4a/connect 4.2.1-beta.0 → 4.2.1-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/index.cjs.js CHANGED
@@ -4640,15 +4640,14 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
4640
4640
  },
4641
4641
  })
4642
4642
  .then((res) => res.data);
4643
- const currentFiltersId = currentFilters.map((f) => f.id);
4643
+ const currentFiltersId = currentFilters.map((f) => f.filterId);
4644
4644
  const filtersUpdatedId = filters.value.map((f) => f.id);
4645
4645
  const filterToBeDeleted = currentFiltersId.filter((c) => !filtersUpdatedId.includes(c));
4646
4646
  const filterToBeInserted = filtersUpdatedId.filter((c) => !currentFiltersId.includes(c));
4647
4647
  for (const filter of filterToBeDeleted) {
4648
4648
  const index = currentFilters.findIndex((f) => f.id == filter);
4649
- if (index != -1) {
4649
+ if (index != -1)
4650
4650
  currentFilters.splice(index, 1);
4651
- }
4652
4651
  await this.categoryFilterRepository.deleteByCategoryAndFilter(categoryId, filter);
4653
4652
  }
4654
4653
  for (const filter of filterToBeInserted) {
package/index.esm.js CHANGED
@@ -4616,15 +4616,14 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
4616
4616
  },
4617
4617
  })
4618
4618
  .then((res) => res.data);
4619
- const currentFiltersId = currentFilters.map((f) => f.id);
4619
+ const currentFiltersId = currentFilters.map((f) => f.filterId);
4620
4620
  const filtersUpdatedId = filters.value.map((f) => f.id);
4621
4621
  const filterToBeDeleted = currentFiltersId.filter((c) => !filtersUpdatedId.includes(c));
4622
4622
  const filterToBeInserted = filtersUpdatedId.filter((c) => !currentFiltersId.includes(c));
4623
4623
  for (const filter of filterToBeDeleted) {
4624
4624
  const index = currentFilters.findIndex((f) => f.id == filter);
4625
- if (index != -1) {
4625
+ if (index != -1)
4626
4626
  currentFilters.splice(index, 1);
4627
- }
4628
4627
  await this.categoryFilterRepository.deleteByCategoryAndFilter(categoryId, filter);
4629
4628
  }
4630
4629
  for (const filter of filterToBeInserted) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.2.1-beta.0",
3
+ "version": "4.2.1-beta.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },