Skip to content

Commit

Permalink
fix: list dataSouce is empty and loading show empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
YyumeiZhang committed Feb 7, 2025
1 parent 4e96bb1 commit ca846fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/semi-ui/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ class List<T = any> extends BaseComponent<ListProps<T>> {
);
});
} else if (!children) {
childrenList = <Spin spinning={loading} size="large">
{this.renderEmpty()}
</Spin>;
childrenList = this.renderEmpty();
}
return (
<div className={wrapperCls} style={style} {...this.getDataAttr(rest)}>
Expand Down

0 comments on commit ca846fb

Please sign in to comment.