From ab70e2a257af5e46a6509fb19318d61be190298a Mon Sep 17 00:00:00 2001 From: mkljczk Date: Thu, 5 Dec 2024 11:35:47 +0100 Subject: [PATCH] pl-fe: revert backups order Signed-off-by: mkljczk --- packages/pl-fe/src/queries/settings/use-backups.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/queries/settings/use-backups.ts b/packages/pl-fe/src/queries/settings/use-backups.ts index f943d4713..70c7fe205 100644 --- a/packages/pl-fe/src/queries/settings/use-backups.ts +++ b/packages/pl-fe/src/queries/settings/use-backups.ts @@ -10,7 +10,7 @@ const useBackupsQuery = () => { return useQuery({ queryKey: ['settings', 'backups'], queryFn: () => client.settings.getBackups(), - select: (backups) => backups.toSorted((a, b) => a.inserted_at.localeCompare(b.inserted_at)), + select: (backups) => backups.toSorted((a, b) => b.inserted_at.localeCompare(a.inserted_at)), }); };