diff --git a/client/src/App/App.jsx b/client/src/App/App.jsx index 2d9c03557..fa24ef07e 100644 --- a/client/src/App/App.jsx +++ b/client/src/App/App.jsx @@ -233,9 +233,7 @@ export function App({ path="/parts/*" element={ - - - + } > diff --git a/client/src/components/bills-list-table/bills-list-table.component.jsx b/client/src/components/bills-list-table/bills-list-table.component.jsx index 4b46fad21..8b1d8e09c 100644 --- a/client/src/components/bills-list-table/bills-list-table.component.jsx +++ b/client/src/components/bills-list-table/bills-list-table.component.jsx @@ -109,6 +109,13 @@ export function BillsListTableComponent({ key: "vendorname", sorter: (a, b) => alphaSort(a.vendor.name, b.vendor.name), sortOrder: state.sortedInfo.columnKey === "vendorname" && state.sortedInfo.order, + filters: bills + ? [...new Set(bills.map((bill) => bill.vendor.name))].map((name) => ({ + text: name, + value: name + })) + : [], + onFilter: (value, record) => record.vendor.name === value, render: (text, record) => {record.vendor.name} }, { diff --git a/client/src/components/global-footer/global-footer.component.jsx b/client/src/components/global-footer/global-footer.component.jsx index 9286de833..19e9b0629 100644 --- a/client/src/components/global-footer/global-footer.component.jsx +++ b/client/src/components/global-footer/global-footer.component.jsx @@ -16,7 +16,7 @@ const mapStateToProps = createStructuredSelector({ export function GlobalFooter({ isPartsEntry }) { const { t } = useTranslation(); - + if (isPartsEntry) { return (