@infrab4a/connect 4.0.0-beta.48 → 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.
@@ -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
  });