pl-fe: revert backups order

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk 2024-12-05 11:35:47 +01:00
parent 29cd637a6b
commit ab70e2a257

View file

@ -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)),
});
};