@nocobase/flow-engine 2.0.35 → 2.0.36

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.
@@ -461,6 +461,12 @@ const _Collection = class _Collection {
461
461
  }
462
462
  get titleCollectionField() {
463
463
  const titleFieldName = this.options.titleField || this.filterTargetKey;
464
+ if (Array.isArray(titleFieldName)) {
465
+ if (titleFieldName.length !== 1) {
466
+ return void 0;
467
+ }
468
+ return this.getField(titleFieldName[0]);
469
+ }
464
470
  const titleCollectionField = this.getField(titleFieldName);
465
471
  return titleCollectionField;
466
472
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/flow-engine",
3
- "version": "2.0.35",
3
+ "version": "2.0.36",
4
4
  "private": false,
5
5
  "description": "A standalone flow engine for NocoBase, managing workflows, models, and actions.",
6
6
  "main": "lib/index.js",
@@ -8,8 +8,8 @@
8
8
  "dependencies": {
9
9
  "@formily/antd-v5": "1.x",
10
10
  "@formily/reactive": "2.x",
11
- "@nocobase/sdk": "2.0.35",
12
- "@nocobase/shared": "2.0.35",
11
+ "@nocobase/sdk": "2.0.36",
12
+ "@nocobase/shared": "2.0.36",
13
13
  "ahooks": "^3.7.2",
14
14
  "axios": "^1.7.0",
15
15
  "dayjs": "^1.11.9",
@@ -37,5 +37,5 @@
37
37
  ],
38
38
  "author": "NocoBase Team",
39
39
  "license": "Apache-2.0",
40
- "gitHead": "724e9b28057c9033b9d57bdbeda5a331c9dcc646"
40
+ "gitHead": "7514980b14f7584ded34e49ced5ee0457eb5c0c2"
41
41
  }
@@ -501,6 +501,12 @@ export class Collection {
501
501
 
502
502
  get titleCollectionField() {
503
503
  const titleFieldName = this.options.titleField || this.filterTargetKey;
504
+ if (Array.isArray(titleFieldName)) {
505
+ if (titleFieldName.length !== 1) {
506
+ return undefined;
507
+ }
508
+ return this.getField(titleFieldName[0]);
509
+ }
504
510
  const titleCollectionField = this.getField(titleFieldName);
505
511
  return titleCollectionField;
506
512
  }