fix: handle undefined slug param type in project detail page
All checks were successful
ci/someci/push/woodpecker Pipeline was successful
All checks were successful
ci/someci/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user