debug: add console logs to PersonDetailView
This commit is contained in:
@@ -150,9 +150,12 @@ const API_KEY = 'muser_68600856036340bcafc01930eb4bd839_1774418104_97221b69'
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
const uuid = route.params.uuid as string
|
const uuid = route.params.uuid as string
|
||||||
|
console.log('PersonDetailView mounted, uuid:', uuid)
|
||||||
try {
|
try {
|
||||||
const people: any = await invoke('getPeople', { page: 1, perPage: 1000 })
|
const people: any = await invoke('getPeople', { page: 1, perPage: 1000 })
|
||||||
|
console.log('getPeople result count:', Array.isArray(people) ? people.length : 'not array')
|
||||||
const found = (Array.isArray(people) ? people : []).find((p: any) => p.identity_uuid === uuid)
|
const found = (Array.isArray(people) ? people : []).find((p: any) => p.identity_uuid === uuid)
|
||||||
|
console.log('Person found:', !!found, found?.name)
|
||||||
if (found) {
|
if (found) {
|
||||||
person.value = { ...found, status: found.status || 'confirmed' }
|
person.value = { ...found, status: found.status || 'confirmed' }
|
||||||
await loadProfile(uuid)
|
await loadProfile(uuid)
|
||||||
|
|||||||
Reference in New Issue
Block a user