rez_core 4.0.110 → 4.0.111

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": "4.0.110",
3
+ "version": "4.0.111",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -372,7 +372,20 @@ export class FilterService {
372
372
 
373
373
  // Extract layout preference
374
374
  const layout = layoutPreference?.[0]?.mapped_json?.quick_tab || {};
375
- const showList = layout?.show_list?.map((val) => val.toLowerCase()) || [];
375
+ const showList =
376
+ layout?.show_list?.map((val) => {
377
+ if (typeof val === 'string') {
378
+ // legacy case — old format like ['Active', 'Inactive']
379
+ return val.toLowerCase();
380
+ }
381
+
382
+ if (val && typeof val === 'object' && val.value !== undefined) {
383
+ // new format — [{ label: 'Active', value: '13023' }]
384
+ return String(val.value).toLowerCase();
385
+ }
386
+
387
+ return ''; // fallback safety
388
+ }) || [];
376
389
 
377
390
  let filteredTabs = await this.getFilteredTabs(
378
391
  layout,
@@ -573,9 +586,12 @@ export class FilterService {
573
586
  }
574
587
 
575
588
  // Filter by value IDs (not labels)
576
- filteredTabs = allTabs.filter((tab) =>
577
- showValues.includes(tab.tab_value?.toString().toLowerCase()),
578
- );
589
+ filteredTabs = allTabs.filter((tab) => {
590
+ const tabValueStr = tab.tab_value
591
+ ? String(tab.tab_value).toLowerCase()
592
+ : '';
593
+ return showValues.includes(tabValueStr);
594
+ });
579
595
 
580
596
  // Handle "all" tab
581
597
  const allTab = filteredTabs.find(
@@ -12,6 +12,7 @@ import { ThirdPartyModule } from '../third-party-module/third-party.module';
12
12
  import { HttpModule } from '@nestjs/axios';
13
13
  import { ListMasterRegistry } from './service/list-master-registry';
14
14
  import { ListMasterEngine } from './service/list-master-engine';
15
+ import { MicroserviceClientsModule } from '../microservice-client/microservice-clients.module';
15
16
 
16
17
  @Module({
17
18
  imports: [
@@ -19,6 +20,7 @@ import { ListMasterEngine } from './service/list-master-engine';
19
20
  forwardRef(() => EntityModule),
20
21
  ThirdPartyModule,
21
22
  HttpModule,
23
+ MicroserviceClientsModule,
22
24
  ],
23
25
  providers: [
24
26
  {provide: 'ListMasterService', useClass: ListMasterService},