diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.server.ts b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.server.ts index 6dc03b4..16e5a0a 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.server.ts +++ b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.server.ts @@ -3,7 +3,7 @@ import type { CandidatePreview } from '$lib/stores/candidate'; import type { PageServerLoad } from './$types'; export const load: PageServerLoad = async ({ fetch }) => { - let candidatePreview: [CandidatePreview] = [{}]; + let candidatePreview: Array = [{}]; try { candidatePreview = await apiListCandidates(fetch); } catch (e) { diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte index d7f53f9..ed6513d 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte +++ b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte @@ -1,16 +1,13 @@ {#if createCandidateModal} getCandidates()} on:close={() => (createCandidateModal = false)} /> {/if} @@ -80,7 +89,7 @@

Uchazeči

- +