mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
chore: report error if collection not found
This commit is contained in:
parent
06a9d008e3
commit
0bb421ac40
@ -27,6 +27,10 @@ export class PluginErrorHandler extends Plugin {
|
||||
|
||||
const collection = database.modelCollection.get(model);
|
||||
|
||||
if (!collection) {
|
||||
return path;
|
||||
}
|
||||
|
||||
const field = collection.getField(path);
|
||||
const fieldOptions = Schema.compile(field?.options, { t: tFunc });
|
||||
const title = lodash.get(fieldOptions, 'uiSchema.title', path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user