@infrab4a/connect 4.0.0-beta.47 → 4.0.0-beta.49

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.
@@ -1683,7 +1683,7 @@ class ProductsIndex {
1683
1683
  return Product.toInstance(data);
1684
1684
  }
1685
1685
  async search(searchTerm, total, shop) {
1686
- const size = total >= 10 ? 500 : 9;
1686
+ const size = total || 9;
1687
1687
  const fields = [
1688
1688
  'EAN',
1689
1689
  'brand',
@@ -4283,7 +4283,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
4283
4283
  filters: { ...params.filters, published: true },
4284
4284
  orderBy: {
4285
4285
  hasStock: 'desc',
4286
- intGender: mainGender === 'female' ? 'desc' : 'asc',
4286
+ ...(!mainGender ? {} : { intGender: mainGender === 'female' ? 'desc' : 'asc' }),
4287
4287
  ...omit(params.orderBy, ['hasStock', 'intGender']),
4288
4288
  },
4289
4289
  });