mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-26 05:22:04 +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 CreateCandidateModal from '$lib/components/admin/CreateCandidateModal.svelte';
|
||||||
import Fuse from 'fuse.js';
|
import Fuse from 'fuse.js';
|
||||||
|
|
||||||
let candidates: Array<CandidatePreview> = [{}];
|
|
||||||
|
|
||||||
export let data: PageData;
|
export let data: PageData;
|
||||||
|
|
||||||
onMount(() => {
|
let candidates: Array<CandidatePreview> = data.preview;
|
||||||
candidates = data.preview;
|
|
||||||
});
|
|
||||||
|
|
||||||
const getCandidates = async (field?: string) => {
|
const getCandidates = async (field?: string) => {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue