diff --git a/src/orders/views/OrderDraftList/OrderDraftList.tsx b/src/orders/views/OrderDraftList/OrderDraftList.tsx index f360d0360..47b310998 100644 --- a/src/orders/views/OrderDraftList/OrderDraftList.tsx +++ b/src/orders/views/OrderDraftList/OrderDraftList.tsx @@ -34,7 +34,6 @@ import { OrderDraftBulkCancel } from "../../types/OrderDraftBulkCancel"; import { OrderDraftCreate } from "../../types/OrderDraftCreate"; import { orderDraftListUrl, - OrderDraftListUrlFilters, OrderDraftListUrlQueryParams, orderUrl, OrderDraftListUrlDialog @@ -204,7 +203,7 @@ export const OrderDraftList: React.FC = ({ params }) => { initialSearch={params.query || ""} onSearchChange={handleSearchChange} onFilterChange={changeFilters} - onAll={() => navigate(orderDraftListUrl())} + onAll={resetFilters} onTabChange={handleTabChange} onTabDelete={() => openModal("delete-search")} onTabSave={() => openModal("save-search")} diff --git a/src/storybook/stories/orders/OrderDraftListPage.tsx b/src/storybook/stories/orders/OrderDraftListPage.tsx index 429a40b36..85d8ffec3 100644 --- a/src/storybook/stories/orders/OrderDraftListPage.tsx +++ b/src/storybook/stories/orders/OrderDraftListPage.tsx @@ -7,7 +7,8 @@ import { pageListProps, searchPageProps, tabPageProps, - sortPageProps + sortPageProps, + filterPageProps } from "../../../fixtures"; import OrderDraftListPage, { OrderDraftListPageProps @@ -21,6 +22,20 @@ const props: OrderDraftListPageProps = { ...searchPageProps, ...sortPageProps, ...tabPageProps, + ...filterPageProps, + filterOpts: { + created: { + active: false, + value: { + max: undefined, + min: undefined + } + }, + customer: { + active: false, + value: undefined + } + }, onAdd: () => undefined, orders, sort: {