mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +00:00
refactor: remove onmount
This commit is contained in:
parent
16c5dfe8be
commit
c8ca5ce49c
1 changed files with 2 additions and 5 deletions
|
|
@ -8,13 +8,10 @@
|
|||
import CreateCandidateModal from '$lib/components/admin/CreateCandidateModal.svelte';
|
||||
import Fuse from 'fuse.js';
|
||||
|
||||
let candidates: Array<CandidatePreview> = [{}];
|
||||
|
||||
export let data: PageData;
|
||||
|
||||
onMount(() => {
|
||||
candidates = data.preview;
|
||||
});
|
||||
let candidates: Array<CandidatePreview> = data.preview;
|
||||
|
||||
|
||||
const getCandidates = async (field?: string) => {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue