rez_core 2.1.13 → 2.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.1.13",
3
+ "version": "2.1.15",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -239,10 +239,13 @@ export class FilterService {
239
239
  });
240
240
  }
241
241
 
242
- if (layoutPreference[0]?.layout_json.sorting.sortby.length > 0) {
243
- if (Array.isArray(layoutPreference[0]?.layout_json.sorting.sortby)) {
242
+ if (
243
+ layoutPreference &&
244
+ layoutPreference[0]?.layout_json?.sorting?.sortby?.length > 0
245
+ ) {
246
+ if (Array.isArray(layoutPreference[0]?.layout_json?.sorting?.sortby)) {
244
247
  // Optional sorting
245
- layoutPreference[0]?.layout_json.sorting.sortby.forEach(
248
+ layoutPreference[0]?.layout_json?.sorting?.sortby?.forEach(
246
249
  ({ column, order }) => {
247
250
  qb.addOrderBy(
248
251
  `e.${column}`,