Skip to content

Commit

Permalink
UIREQ-1145 - refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
manvendra-s-rathore committed Sep 27, 2024
1 parent d212ff5 commit 9cd6043
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/routes/RequestsRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ class RequestsRoute extends React.Component {
}),
records: PropTypes.arrayOf(PropTypes.object),
}),
resultOffset: PropTypes.number.isRequired,
staffSlips: PropTypes.shape({
records: PropTypes.arrayOf(PropTypes.object).isRequired,
}),
Expand Down Expand Up @@ -1320,7 +1319,7 @@ class RequestsRoute extends React.Component {
})
);

onAfterPrintForSinglePrintButton = () => {
onAfterPrintForPrintButton = () => {
if (this.state.isViewPrintDetailsEnabled) {
this.props.mutator.resultOffset.replace(0);
}
Expand Down Expand Up @@ -1452,7 +1451,7 @@ class RequestsRoute extends React.Component {
toggleRowSelection: this.toggleRowSelection,
onBeforeGetContentForSinglePrintButton: this.onBeforeGetContentForSinglePrintButton,
onBeforePrintForSinglePrintButton: this.savePrintEventDetails,
onAfterPrintForSinglePrintButton: this.onAfterPrintForSinglePrintButton,
onAfterPrintForSinglePrintButton: this.onAfterPrintForPrintButton,
}
);

Expand Down Expand Up @@ -1522,7 +1521,7 @@ class RequestsRoute extends React.Component {
await this.savePrintEventDetails(requestIds);
}
}}
onAfterPrint={() => this.onAfterPrintForSinglePrintButton()}
onAfterPrint={() => this.onAfterPrintForPrintButton()}
>
<FormattedMessage
id="ui-requests.printPickSlips"
Expand Down Expand Up @@ -1554,7 +1553,7 @@ class RequestsRoute extends React.Component {
}
}
}
onAfterPrint={() => this.onAfterPrintForSinglePrintButton()}
onAfterPrint={() => this.onAfterPrintForPrintButton()}
>
<FormattedMessage
id="ui-requests.printPickSlipsSelected"
Expand Down

0 comments on commit 9cd6043

Please sign in to comment.