@nocobase/database 1.4.0-alpha.20240918085507 → 1.4.0-alpha.20240923152933

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.
@@ -45,6 +45,7 @@ const interfaces = {
45
45
  multipleSelect: import_index.MultipleSelectInterface,
46
46
  checkboxes: import_index.MultipleSelectInterface,
47
47
  checkboxGroup: import_index.MultipleSelectInterface,
48
+ checkbox: import_index.BooleanInterface,
48
49
  select: import_index.SelectInterface,
49
50
  radio: import_index.SelectInterface,
50
51
  radioGroup: import_index.SelectInterface,
@@ -123,7 +123,7 @@ const _RelationRepository = class _RelationRepository {
123
123
  }
124
124
  convertTk(options) {
125
125
  let tk = options;
126
- if (typeof options === "object" && options["tk"]) {
126
+ if (typeof options === "object" && "tk" in options) {
127
127
  tk = options["tk"];
128
128
  }
129
129
  return tk;
@@ -133,7 +133,10 @@ const _RelationRepository = class _RelationRepository {
133
133
  if (typeof tk === "string") {
134
134
  tk = tk.split(",");
135
135
  }
136
- return import_lodash.default.castArray(tk);
136
+ if (tk) {
137
+ return import_lodash.default.castArray(tk);
138
+ }
139
+ return [];
137
140
  }
138
141
  targetKey() {
139
142
  return this.associationField.targetKey;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/database",
3
- "version": "1.4.0-alpha.20240918085507",
3
+ "version": "1.4.0-alpha.20240923152933",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "license": "AGPL-3.0",
8
8
  "dependencies": {
9
- "@nocobase/logger": "1.4.0-alpha.20240918085507",
10
- "@nocobase/utils": "1.4.0-alpha.20240918085507",
9
+ "@nocobase/logger": "1.4.0-alpha.20240923152933",
10
+ "@nocobase/utils": "1.4.0-alpha.20240923152933",
11
11
  "async-mutex": "^0.3.2",
12
12
  "chalk": "^4.1.1",
13
13
  "cron-parser": "4.4.0",
@@ -38,5 +38,5 @@
38
38
  "url": "git+https://github.com/nocobase/nocobase.git",
39
39
  "directory": "packages/database"
40
40
  },
41
- "gitHead": "f7e20e88102e8ed8200ad0213c32d8815770e2f1"
41
+ "gitHead": "bd1a83a7040a63619a3d39c5b67048fa97a49f5a"
42
42
  }