fix(admin) : handle null/IRI client in project filter for UserDrawer

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 21:34:21 +01:00
parent 239cd6398e
commit 254f8bc411

View File

@@ -121,7 +121,7 @@ const clientOptions = computed(() => [
const filteredProjects = computed(() => {
if (form.clientId === null) return []
return allProjects.value.filter(
(p) => p.client !== null && p.client.id === form.clientId,
(p) => p.client && typeof p.client === 'object' && 'id' in p.client && p.client.id === form.clientId,
)
})