Skip to content

Commit

Permalink
Merge pull request #98195 from cockroachdb/blathers/backport-release-…
Browse files Browse the repository at this point in the history
…22.1-98177

release-22.1: ui: check if onPageChanged prop exists before calling it
  • Loading branch information
ericharmeling authored Mar 8, 2023
2 parents cbdd452 + 13449d4 commit cc22d8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class StatementsPage extends React.Component<
onChangePage = (current: number): void => {
const { pagination } = this.state;
this.setState({ pagination: { ...pagination, current } });
this.props.onPageChanged(current);
this.props.onPageChanged != null && this.props.onPageChanged(current);
};

onSubmitSearchField = (search: string): void => {
Expand Down

0 comments on commit cc22d8f

Please sign in to comment.