Skip to content

Commit

Permalink
fix bugs in sap-commerce cloud #5599 (#5986)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusticpenguin authored Jan 12, 2024
1 parent bb16e2e commit 18e6229
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/sap-commerce-cloud/src/components/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default class Dialog extends React.Component<DialogProps, State> {
};

updateTotalPages = (totalPages: number) => {
this.setState({ totalPages: this.state.totalPages });
this.setState({ totalPages });
};

selectMultipleProductsClickEvent = () => {
Expand All @@ -152,13 +152,11 @@ export default class Dialog extends React.Component<DialogProps, State> {
}

nextPageButtonEvent = () => {
this.setState({ page: this.state.page - 1 });
this.load();
this.setState({ page: this.state.page + 1 }, this.load);
};

prevPageButtonEvent = () => {
this.setState({ page: this.state.page - 1 });
this.load();
this.setState({ page: this.state.page - 1 }, this.load);
};

render() {
Expand Down

0 comments on commit 18e6229

Please sign in to comment.