mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: error when creating comment block without comment collection (#6309)
This commit is contained in:
parent
605eea4399
commit
bbb3bc9a40
@ -398,7 +398,7 @@ export const DataBlockInitializer: FC<DataBlockInitializerProps> = (props) => {
|
|||||||
];
|
];
|
||||||
}, [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?.length > 0)) {
|
if (childItems.length > 1 || (childItems.length === 1 && childItems[0].children)) {
|
||||||
return (
|
return (
|
||||||
<SchemaInitializerMenu
|
<SchemaInitializerMenu
|
||||||
onOpenChange={(keys) => {
|
onOpenChange={(keys) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user