From fc7be0e6cc2d4781fd9e0aa470aa7101d46920bf Mon Sep 17 00:00:00 2001 From: Sebastian Pravda Date: Wed, 15 Feb 2023 15:19:58 +0100 Subject: [PATCH] feat(admin dashboard): sort candidates by createdAt_desc by default --- .../routes/(admin)/admin/(authenticated)/dashboard/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte index ba4f391..c7ce898 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte +++ b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte @@ -20,7 +20,7 @@ const getCandidates = async () => { try { - candidates = await apiListCandidates(undefined, activeFilter.filter); + candidates = await apiListCandidates(undefined, {field: activeFilter.filter}); } catch { pushErrorText('Nepodařilo se načíst uchazeče'); }