mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix: missing unique keys of association fields (#6230)
This commit is contained in:
parent
05e107f4fa
commit
76d59bcd3d
@ -239,6 +239,7 @@ function getGroupItemForTable({
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'item',
|
type: 'item',
|
||||||
|
key: `${field.target}_${subField.name}_${newSchemaName}`,
|
||||||
name: newSchemaName,
|
name: newSchemaName,
|
||||||
title: subField?.uiSchema?.title || subField.name,
|
title: subField?.uiSchema?.title || subField.name,
|
||||||
Component: 'TableCollectionFieldInitializer',
|
Component: 'TableCollectionFieldInitializer',
|
||||||
@ -259,6 +260,7 @@ function getGroupItemForTable({
|
|||||||
|
|
||||||
const displayCollectionFields = {
|
const displayCollectionFields = {
|
||||||
type: 'itemGroup',
|
type: 'itemGroup',
|
||||||
|
key: `${field.target}_${schemaName}_displayFields`,
|
||||||
name: `${schemaName}-displayCollectionFields`,
|
name: `${schemaName}-displayCollectionFields`,
|
||||||
title: t('Display fields'),
|
title: t('Display fields'),
|
||||||
children: items,
|
children: items,
|
||||||
@ -287,6 +289,7 @@ function getGroupItemForTable({
|
|||||||
if (subChildren.length) {
|
if (subChildren.length) {
|
||||||
const group: any = {
|
const group: any = {
|
||||||
type: 'itemGroup',
|
type: 'itemGroup',
|
||||||
|
key: `${field.target}_${schemaName}_associationFields`,
|
||||||
name: `${schemaName}-associationFields`,
|
name: `${schemaName}-associationFields`,
|
||||||
title: t('Display association fields'),
|
title: t('Display association fields'),
|
||||||
children: subChildren,
|
children: subChildren,
|
||||||
@ -298,7 +301,8 @@ function getGroupItemForTable({
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'subMenu',
|
type: 'subMenu',
|
||||||
name: `${schemaName}`,
|
key: `${field.target}_${schemaName}_submenu`,
|
||||||
|
name: schemaName,
|
||||||
title: field.uiSchema?.title,
|
title: field.uiSchema?.title,
|
||||||
children,
|
children,
|
||||||
} as SchemaInitializerItemType;
|
} as SchemaInitializerItemType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user