fix: handle undefined slug param type in project detail page
All checks were successful
ci/someci/push/woodpecker Pipeline was successful

This commit is contained in:
2026-03-10 11:41:22 +01:00
parent 5638d19e48
commit 2a76235121

View File

@@ -5,7 +5,7 @@
import Icon from '$lib/components/Icon.svelte'
import { SITE_URL, SITE_AUTHOR, DEFAULT_SOCIAL_IMAGE } from '$lib/config/site'
const project = $derived($portfolio.findProject($page.params.slug))
const project = $derived($portfolio.findProject($page.params.slug ?? ''))
const seoTitle = $derived(
project