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 d24b71a commit 9b3cabc
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,6 +568,7 @@ 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 @@ -1556,11 +1557,9 @@ class RequestsRoute extends React.Component {
}
}
onAfterPrint={() => {
if (isViewPrintDetailsEnabled) {
if (selectedRows && mutator.resultOffset) {
mutator.resultOffset.replace(0);
this.setState({ selectedRows: {} });
}
if (isViewPrintDetailsEnabled && resources.resultOffset) {
mutator.resultOffset.replace(0);
this.setState({ selectedRows: {} });
}
}}
>
Expand Down

0 comments on commit 9b3cabc

Please sign in to comment.