Skip to content

Commit

Permalink
fix: fix rendering failure when children is number 0
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyJinSS committed Oct 12, 2023
1 parent bf980c9 commit 55cf9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer-core/src/renderer/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
* @param idx 为循环渲染的循环Index
*/
__createVirtualDom = (originalSchema: IPublicTypeNodeData | IPublicTypeNodeData[] | undefined, originalScope: any, parentInfo: INodeInfo, idx: string | number = ''): any => {
if (!originalSchema) {
if (originalSchema === null || originalSchema === undefined) {
return null;
}
let scope = originalScope;
Expand Down

0 comments on commit 55cf9b1

Please sign in to comment.