mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-11 16:28:18 +00:00
fix: fix the problem caused by props.children is [] by default in leaf
This commit is contained in:
parent
b5070a2721
commit
3df03b6f80
@ -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