From 8f64061e65a5138e6c30ff81010851785ba7408c Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 25 Jul 2022 23:24:18 +0800 Subject: [PATCH] fix(plugin-error-handler): no error message --- packages/plugins/error-handler/src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/error-handler/src/server.ts b/packages/plugins/error-handler/src/server.ts index 74420a96a..2560a3366 100644 --- a/packages/plugins/error-handler/src/server.ts +++ b/packages/plugins/error-handler/src/server.ts @@ -27,7 +27,7 @@ export class PluginErrorHandler extends Plugin { const model = instance.constructor; const collection = this.db.modelCollection.get(model); const field = collection.getField(path); - const fieldOptions = Schema.compile(field.options, { t: tFunc }); + const fieldOptions = Schema.compile(field?.options, { t: tFunc }); const title = lodash.get(fieldOptions, 'uiSchema.title', path); return title; };