From 53ef048f6f89b1384bccb46dc532514d68eea8f7 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Fri, 8 Mar 2024 11:24:41 -0800 Subject: [PATCH] Correct Sorters Signed-off-by: Allan Carr --- .../accounting-payables-table.component.jsx | 3 --- .../accounting-payments-table.component.jsx | 7 ++++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/client/src/components/accounting-payables-table/accounting-payables-table.component.jsx b/client/src/components/accounting-payables-table/accounting-payables-table.component.jsx index d8b477005..1110ddc37 100644 --- a/client/src/components/accounting-payables-table/accounting-payables-table.component.jsx +++ b/client/src/components/accounting-payables-table/accounting-payables-table.component.jsx @@ -138,7 +138,6 @@ export function AccountingPayablesTableComponent({ title: t("exportlogs.labels.attempts"), dataIndex: "attempts", key: "attempts", - render: (text, record) => ( ), @@ -147,8 +146,6 @@ export function AccountingPayablesTableComponent({ title: t("general.labels.actions"), dataIndex: "actions", key: "actions", - sorter: (a, b) => a.clm_total - b.clm_total, - render: (text, record) => ( - alphaSort(OwnerNameDisplayFunction(a), OwnerNameDisplayFunction(b)), + alphaSort( + OwnerNameDisplayFunction(a.job), + OwnerNameDisplayFunction(b.job) + ), sortOrder: state.sortedInfo.columnKey === "owner" && state.sortedInfo.order, render: (text, record) => { @@ -146,8 +149,6 @@ export function AccountingPayablesTableComponent({ title: t("general.labels.actions"), dataIndex: "actions", key: "actions", - sorter: (a, b) => a.clm_total - b.clm_total, - render: (text, record) => (