fix(frontend): Fix all type issues

This commit is contained in:
2025-11-15 08:40:09 +01:00
parent 1c8815d4ce
commit daf619d6eb
16 changed files with 88 additions and 56 deletions

View File

@@ -120,7 +120,10 @@ const selectedOrganizationId = computed({
},
set(item) {
// TODO: USelect triggers multiple times after single selection
selectedOrganization.value = organizations.value.find((i: Organization) => i.id === item) ?? null
const foundOrg = organizations.value?.find((i: Organization) => i.id === item) ?? null
if (foundOrg !== undefined) {
selectedOrganization.value = foundOrg
}
}
})