diff --git a/pkg/ui/workspaces/cluster-ui/src/statementsPage/statementsPage.tsx b/pkg/ui/workspaces/cluster-ui/src/statementsPage/statementsPage.tsx index 18d8f5ff18c4..bb52c9008126 100644 --- a/pkg/ui/workspaces/cluster-ui/src/statementsPage/statementsPage.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/statementsPage/statementsPage.tsx @@ -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 => {