Skip to content

Commit

Permalink
fix(BodyTable): if we've fetchedAll, do not fetch another page
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Nov 11, 2019
1 parent 1f121fe commit 2f5a954
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/components/BodyTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default class BodyTable extends React.Component<BodyTableProps> {

fetchNextPage (direction: 'up' | 'down') {
const { body, pageInfo, onFetch } = this.props
if (direction === 'down' && pageInfo.fetchedAll === true) { return }
const page = getNextPageNumber(direction, body, pageInfo.pageSize)

onFetch(page, pageInfo.pageSize)
Expand Down

0 comments on commit 2f5a954

Please sign in to comment.