From 0b12dd8f70d97253db0379bbf66b9885440db81b Mon Sep 17 00:00:00 2001 From: Mats Eriksson Date: Thu, 28 Nov 2024 19:31:20 +0200 Subject: [PATCH] fix: sort my applications listing by sentDate --- apps/ui/pages/applications/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ui/pages/applications/index.tsx b/apps/ui/pages/applications/index.tsx index 05995c867..1d0a47857 100644 --- a/apps/ui/pages/applications/index.tsx +++ b/apps/ui/pages/applications/index.tsx @@ -65,7 +65,7 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) { variables: { user: user.pk, status: VALID_STATUSES, - orderBy: [ApplicationOrderingChoices.PkDesc], + orderBy: [ApplicationOrderingChoices.SentDateDesc], }, }); @@ -160,7 +160,7 @@ function ApplicationsPage({ variables: { user: currentUser?.pk ?? 0, status: VALID_STATUSES, - orderBy: [ApplicationOrderingChoices.PkDesc], + orderBy: [ApplicationOrderingChoices.SentDateDesc], }, });