@nocobase/resourcer 2.0.22 → 2.0.24

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.
Files changed (2) hide show
  1. package/lib/utils.js +3 -1
  2. package/package.json +3 -3
package/lib/utils.js CHANGED
@@ -249,7 +249,9 @@ function parseQuery(input) {
249
249
  if (typeof query.filterByTk === "string") {
250
250
  query.filterByTk = smartParse(query.filterByTk);
251
251
  }
252
- query.filterByTk = normalizeIndexedObjectToArray(query.filterByTk);
252
+ if (query.filterByTk) {
253
+ query.filterByTk = normalizeIndexedObjectToArray(query.filterByTk);
254
+ }
253
255
  return query;
254
256
  }
255
257
  __name(parseQuery, "parseQuery");
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nocobase/resourcer",
3
- "version": "2.0.22",
3
+ "version": "2.0.24",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "license": "Apache-2.0",
8
8
  "dependencies": {
9
- "@nocobase/utils": "2.0.22",
9
+ "@nocobase/utils": "2.0.24",
10
10
  "deepmerge": "^4.2.2",
11
11
  "koa-compose": "^4.1.0",
12
12
  "lodash": "^4.17.21",
@@ -18,5 +18,5 @@
18
18
  "url": "git+https://github.com/nocobase/nocobase.git",
19
19
  "directory": "packages/resourcer"
20
20
  },
21
- "gitHead": "7b703580c4bb60f1e5e44c8fd685141bb8b3a47c"
21
+ "gitHead": "99c70df22e2e910ed6bfae53e1f1a38648095145"
22
22
  }