From e08ff3c570e0491ff9d2eec36a6c8097ac109cb7 Mon Sep 17 00:00:00 2001 From: Dimitar Filipov Date: Tue, 12 Sep 2023 09:33:33 +0300 Subject: [PATCH] sort bank transactions by descening date (#1589) --- src/components/admin/bank-transactions/grid/Grid.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/admin/bank-transactions/grid/Grid.tsx b/src/components/admin/bank-transactions/grid/Grid.tsx index ae0ee40ab..3d1bc68d4 100644 --- a/src/components/admin/bank-transactions/grid/Grid.tsx +++ b/src/components/admin/bank-transactions/grid/Grid.tsx @@ -151,6 +151,11 @@ export default observer(function Grid() { rowCount={all_rows} disableRowSelectionOnClick isCellEditable={() => true} + initialState={{ + sorting: { + sortModel: [{ field: 'transactionDate', sort: 'desc' }], + }, + }} />