Fix a bug causing duplication of posts in PostList

This commit is contained in:
riggraz
2019-09-12 18:04:00 +02:00
parent e649588211
commit 7f49b14c06

View File

@@ -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>
);