ScrollableList: fix empty children
This commit is contained in:
parent
b3f4abc8c1
commit
0d463bbbd1
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ const ScrollableList: React.FC<IScrollableList> = ({
|
|||
<Virtuoso
|
||||
useWindowScroll
|
||||
className={className}
|
||||
data={showPlaceholder ? Array(placeholderCount).fill('') : Array.from(children)}
|
||||
data={showPlaceholder ? Array(placeholderCount).fill('') : Array.from(children || [])}
|
||||
startReached={onScrollToTop}
|
||||
endReached={onLoadMore}
|
||||
isScrolling={isScrolling => isScrolling && onScroll && onScroll()}
|
||||
|
|
Loading…
Reference in a new issue