fix: People default status to confirmed
This commit is contained in:
@@ -222,7 +222,10 @@ const skippedPeople = computed(() => {
|
||||
onMounted(async () => {
|
||||
try {
|
||||
const result: any = await invoke('get_people', { page: 1, perPage: 1000 })
|
||||
people.value = Array.isArray(result) ? result : []
|
||||
people.value = (Array.isArray(result) ? result : []).map((p: any) => ({
|
||||
...p,
|
||||
status: p.status || 'confirmed'
|
||||
}))
|
||||
} catch (e) {
|
||||
console.error('Failed to load people:', e)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user