mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
fix: fix the problem caused by props.children is [] by default in leaf
This commit is contained in:
parent
7eed0966e9
commit
723eb3d4d7
@ -538,7 +538,7 @@ export function leafWrapper(Comp: types.IBaseRenderComponent, {
|
||||
if (this.props.children && this.props.children.length) {
|
||||
return this.props.children;
|
||||
}
|
||||
return [];
|
||||
return this.props.children;
|
||||
}
|
||||
|
||||
get leaf(): INode | undefined {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user