diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index a6ad42e..b5791b6 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -58,6 +58,7 @@ }) $pages = pagesRes $team = teamRes + $jobOffers = jobOffersRes } diff --git a/frontend/src/lib/components/Pagebuilder/Pagebuilder.svelte b/frontend/src/lib/components/Pagebuilder/Pagebuilder.svelte index c150656..0d0a084 100644 --- a/frontend/src/lib/components/Pagebuilder/Pagebuilder.svelte +++ b/frontend/src/lib/components/Pagebuilder/Pagebuilder.svelte @@ -57,6 +57,7 @@ on:keydown on:click="{() => { let chefs = Object.values($team).filter((p) => p.personType == 'chef') + chefs = chefs.sort((a, b) => a.sort - b.sort) let i = chefs.findIndex((p) => p.path == page.path) if (i == chefs.length - 1) i = 0 else i++