diff --git a/src/views/board/board.tsx b/src/views/board/board.tsx index 14f85bd1..163ce7bc 100644 --- a/src/views/board/board.tsx +++ b/src/views/board/board.tsx @@ -350,20 +350,29 @@ const Board = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp, i )} - post?.cid || `post-${index}`} - itemContent={(index, post) => } - useWindowScroll={true} - components={footerComponents} - endReached={effectiveInfiniteScroll && hasMore ? loadMore : undefined} - ref={virtuosoRef} - restoreStateFrom={lastVirtuosoState} - initialScrollTop={lastVirtuosoState?.scrollTop} - /> + {effectiveInfiniteScroll ? ( + post?.cid || `post-${index}`} + itemContent={(index, post) => } + useWindowScroll={true} + components={footerComponents} + endReached={hasMore ? loadMore : undefined} + ref={virtuosoRef} + restoreStateFrom={lastVirtuosoState} + initialScrollTop={lastVirtuosoState?.scrollTop} + /> + ) : ( + <> + {displayFeed.map((post, index) => ( + + ))} + + + )} );