fix: usar rows en lugar de data y key en lugar de accessorKey para UTable
All checks were successful
build-and-deploy / build (push) Successful in 42s
build-and-deploy / deploy (push) Successful in 3s

This commit is contained in:
2025-10-14 04:11:51 -06:00
parent 9af3f51760
commit 3c795404cf

View File

@@ -138,7 +138,7 @@
<!-- Table -->
<UTable
:data="paginatedData"
:rows="paginatedData"
:columns="displayColumns"
:loading="loadingData"
/>
@@ -263,13 +263,8 @@ const displayColumns = computed(() => {
const filtered = tableColumns.value
.filter(col => visibleColumns.value.includes(col.key))
.map(col => ({
accessorKey: col.key,
header: col.label,
cell: ({ row }: any) => {
const value = row.getValue(col.key)
if (value === null || value === undefined) return '-'
return String(value)
}
key: col.key,
label: col.label
}))
console.log('📊 displayColumns computed:', filtered.length, 'visible columns')
return filtered