fix: return undefined instead of null in ContentLinkShare getProjectRoute()

This commit is contained in:
kolaente 2025-11-22 14:41:50 +01:00
parent 4a2f961a77
commit 75dafd18e3
1 changed files with 3 additions and 3 deletions

View File

@ -112,10 +112,10 @@ watch(() => route.params.projectId, ensureProjectLoaded, { immediate: true })
onMounted(ensureProjectLoaded)
function getProjectRoute() {
if (!currentProject.value) return null
if (!currentProject.value) return undefined
const hash = route.hash // Preserve link share hash
// Default to the first available view or list view
const projectId = currentProject.value.id
const firstView = projectStore.projects[projectId]?.views?.[0]