mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Fix a bug causing duplication of posts in PostList
This commit is contained in:
@@ -102,7 +102,7 @@ class BoardP extends React.Component<Props> {
|
||||
areLoading={posts.areLoading}
|
||||
error={posts.error}
|
||||
|
||||
handleLoadMore={() => requestPosts(board.id, posts.page + 1)}
|
||||
handleLoadMore={() => posts.areLoading ? null : requestPosts(board.id, posts.page + 1)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user