mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +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}
|
areLoading={posts.areLoading}
|
||||||
error={posts.error}
|
error={posts.error}
|
||||||
|
|
||||||
handleLoadMore={() => requestPosts(board.id, posts.page + 1)}
|
handleLoadMore={() => posts.areLoading ? null : requestPosts(board.id, posts.page + 1)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user