fix(frontend): Fix all type issues
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user