@nocobase/plugin-error-handler 0.7.2-alpha.7 → 0.7.4-alpha.4
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/lib/server.js +1 -1
- package/package.json +3 -3
- package/src/server.ts +1 -1
package/lib/server.js
CHANGED
|
@@ -82,7 +82,7 @@ class PluginErrorHandler extends _server().Plugin {
|
|
|
82
82
|
const collection = this.db.modelCollection.get(model);
|
|
83
83
|
const field = collection.getField(path);
|
|
84
84
|
|
|
85
|
-
const fieldOptions = _jsonSchema().Schema.compile(field.options, {
|
|
85
|
+
const fieldOptions = _jsonSchema().Schema.compile(field === null || field === void 0 ? void 0 : field.options, {
|
|
86
86
|
t: tFunc
|
|
87
87
|
});
|
|
88
88
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-error-handler",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4-alpha.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"licenses": [
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"types": "./lib/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@formily/json-schema": "^2.0.15",
|
|
16
|
-
"@nocobase/server": "0.7.
|
|
16
|
+
"@nocobase/server": "0.7.4-alpha.4"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
21
21
|
"directory": "packages/plugin-error-handler"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "726c06b721b217a6aa5c1421b899d1315e552b57"
|
|
24
24
|
}
|
package/src/server.ts
CHANGED
|
@@ -27,7 +27,7 @@ export class PluginErrorHandler extends Plugin {
|
|
|
27
27
|
const model = instance.constructor;
|
|
28
28
|
const collection = this.db.modelCollection.get(model);
|
|
29
29
|
const field = collection.getField(path);
|
|
30
|
-
const fieldOptions = Schema.compile(field
|
|
30
|
+
const fieldOptions = Schema.compile(field?.options, { t: tFunc });
|
|
31
31
|
const title = lodash.get(fieldOptions, 'uiSchema.title', path);
|
|
32
32
|
return title;
|
|
33
33
|
};
|