fix: add status field to PersonInfo struct
This commit is contained in:
@@ -164,11 +164,11 @@ onMounted(async () => {
|
||||
console.log('PeopleView: calling getPeople...')
|
||||
const result: any = await invoke('getPeople', { page: 1, perPage: 1000 })
|
||||
console.log('PeopleView: getPeople result:', Array.isArray(result) ? result.length : typeof result)
|
||||
people.value = (Array.isArray(result) ? result : []).map((p: any) => ({
|
||||
...p,
|
||||
status: p.status || 'confirmed'
|
||||
}))
|
||||
people.value = Array.isArray(result) ? result : []
|
||||
console.log('PeopleView: people.value length:', people.value.length)
|
||||
if (people.value.length > 0) {
|
||||
console.log('PeopleView: first person:', JSON.stringify(people.value[0]))
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Failed to load people:', e)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user