fix: corregir estructura de columnas para UTable usando accessorKey en lugar de key
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:10:11 -06:00
parent 4303365020
commit 9af3f51760

View File

@@ -263,9 +263,13 @@ const displayColumns = computed(() => {
const filtered = tableColumns.value
.filter(col => visibleColumns.value.includes(col.key))
.map(col => ({
key: col.key,
label: col.label,
sortable: true
accessorKey: col.key,
header: col.label,
cell: ({ row }: any) => {
const value = row.getValue(col.key)
if (value === null || value === undefined) return '-'
return String(value)
}
}))
console.log('📊 displayColumns computed:', filtered.length, 'visible columns')
return filtered