diff --git a/frontend/components/user/UserDrawer.vue b/frontend/components/user/UserDrawer.vue index 1ffcc90..bd4ac85 100644 --- a/frontend/components/user/UserDrawer.vue +++ b/frontend/components/user/UserDrawer.vue @@ -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, ) })