mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 15:37:36 +00:00
refactor: refactor dataSource manager
This commit is contained in:
parent
e16945c652
commit
3c6e70f1cb
@ -27,7 +27,7 @@ const defaultCollectionTransform = (collection: CollectionOptionsV2, app: Applic
|
||||
...rest,
|
||||
title: rawTitle ? title : app.i18n.t(title),
|
||||
rawTitle: rawTitle || title,
|
||||
fields: fields.map(({ uiSchema, ...field }) => {
|
||||
fields: fields?.map(({ uiSchema, ...field }) => {
|
||||
if (uiSchema?.title) {
|
||||
const title = uiSchema.title;
|
||||
uiSchema.title = uiSchema.rawTitle ? title : app.i18n.t(title, { ns: 'lm-collections' });
|
||||
|
Loading…
Reference in New Issue
Block a user