rez_core 2.1.14 → 2.1.16

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.14",
3
+ "version": "2.1.16",
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}`,
@@ -112,6 +112,7 @@ import { AppMaster } from './entity/app-master.entity';
112
112
  UserAppMappingService,
113
113
  UserAppMappingRepository,
114
114
  AppMasterService,
115
+ MasterService,
115
116
  ],
116
117
  controllers: [
117
118
  EntityController,