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:
@@ -121,7 +121,7 @@ const clientOptions = computed(() => [
|
|||||||
const filteredProjects = computed(() => {
|
const filteredProjects = computed(() => {
|
||||||
if (form.clientId === null) return []
|
if (form.clientId === null) return []
|
||||||
return allProjects.value.filter(
|
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,
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user