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
$team = teamRes
$jobOffers = jobOffersRes
}

View File

@ -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++

View File

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