Compare commits

...

2 Commits

Author SHA1 Message Date
bb4a9a2c55 bugfix
All checks were successful
deploy to production / deploy (push) Successful in 45s
2023-12-08 13:28:01 +00:00
6a94866368 sort 2023-12-08 13:24:32 +00:00
3 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,7 @@
}) })
$pages = pagesRes $pages = pagesRes
$team = teamRes $team = teamRes
$jobOffers = jobOffersRes $jobOffers = jobOffersRes
} }

View File

@ -57,6 +57,7 @@
on:keydown on:keydown
on:click="{() => { on:click="{() => {
let chefs = Object.values($team).filter((p) => p.personType == 'chef') 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) let i = chefs.findIndex((p) => p.path == page.path)
if (i == chefs.length - 1) i = 0 if (i == chefs.length - 1) i = 0
else i++ else i++

View File

@ -5,6 +5,7 @@
export let pageId: string export let pageId: string
export let persons: Page[] export let persons: Page[]
persons = persons.sort((a, b) => a.sort - b.sort)
let hover = -1 let hover = -1
</script> </script>