mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +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'];
|
||||
}, [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 (
|
||||
<SchemaInitializerMenu
|
||||
onOpenChange={(keys) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user