Skip to content

Commit

Permalink
Fix: Search/Scan Barcode and auto checkout loan
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 authored and kpsherva committed Feb 19, 2024
1 parent 77fa0c8 commit f4a2d91
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ export default class ItemsSearch extends Component {
};

executeSearch = async (queryString, patronPid) => {
const { queryString: propsQueryString, fetchAndCheckoutIfOne } = this.props;
const {
queryString: propsQueryString,
patronDetails,
fetchAndCheckoutIfOne,
} = this.props;
queryString = queryString || propsQueryString;
patronPid = patronPid || patronDetails.user_pid;

// eslint-disable-next-line react/no-unused-state
this.setState({ prevSearchQuery: queryString, executedSearch: true }, () =>
Expand Down

0 comments on commit f4a2d91

Please sign in to comment.