mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-06 05:59:25 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
2b829e682c
@ -398,7 +398,7 @@ export const DataBlockInitializer: FC<DataBlockInitializerProps> = (props) => {
|
|||||||
] as MenuProps['items'];
|
] as MenuProps['items'];
|
||||||
}, [searchedChildren, hideChildrenIfSingleCollection, name, compile, title, icon, onClick, props]);
|
}, [searchedChildren, hideChildrenIfSingleCollection, name, compile, title, icon, onClick, props]);
|
||||||
|
|
||||||
if (childItems.length > 1 || (childItems.length === 1 && childItems[0].children)) {
|
if (childItems.length > 1 || (childItems.length === 1 && childItems[0]?.children?.length > 0)) {
|
||||||
return (
|
return (
|
||||||
<SchemaInitializerMenu
|
<SchemaInitializerMenu
|
||||||
onOpenChange={(keys) => {
|
onOpenChange={(keys) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user