Skip to content

Commit

Permalink
nice little comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Apr 7, 2020
1 parent 638778b commit cbe14ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/plugins/reporting/public/components/report_listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ class ReportListingUi extends Component<Props, State> {
throw error;
}
}

// Since the contents of the table have changed, we must reset the pagination
// and re-fetch. Otherwise, the Nth page we are on could be empty of jobs.
this.setState(() => ({ page: 0 }), this.fetchJobs);
};

Expand Down

0 comments on commit cbe14ca

Please sign in to comment.