Skip to content

Commit

Permalink
UIOR-1048 No results found shown after return to search page (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Nov 30, 2022
1 parent 56dc19d commit ee98627
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* Link title MCL is showing blank rows. Refs UIOR-1027.
* A user with certain permission gets 403 error when viewing order/order line. Refs UIOR-1032.
* Blanking "Quantity physical" or "Quantity electronic" from order template sets property to empty string. Refs UIOR-1029.
* No results found shown after return to search page. Refs UIOR-1048.

## [3.2.2](https://github.com/folio-org/ui-orders/tree/v3.2.2) (2022-08-08)
[Full Changelog](https://github.com/folio-org/ui-orders/compare/v3.2.1...v3.2.2)
Expand Down
3 changes: 3 additions & 0 deletions src/OrderLinesList/OrderLinesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
ResetButton,
ResultsPane,
SingleSearchForm,
useFiltersReset,
useFiltersToogle,
useLocalStorageFilters,
useLocationSorting,
Expand Down Expand Up @@ -136,6 +137,8 @@ function OrderLinesList({
const { visibleColumns, toggleColumn } = useColumnManager('order-lines-column-manager', columnMapping);
const { itemToView, setItemToView, deleteItemToView } = useItemToView('order-lines-list');

useFiltersReset(resetFilters);

const resultsStatusMessage = (
<NoResultsMessage
isLoading={isLoading}
Expand Down
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ const Orders = ({ match, location, showSettings }) => {
<NavListSection>
<NavListItem
id="orders-app-search-item"
to={ORDER_LINES_ROUTE}
to={{
pathname: ORDER_LINES_ROUTE,
state: { resetFilters: true },
}}
onClick={() => {
handleToggle();
focusSearchField();
Expand Down

0 comments on commit ee98627

Please sign in to comment.