Se coloco nombre de la columna de acciones

This commit is contained in:
2026-01-06 12:08:38 -06:00
parent ec8f6606ad
commit 532b8c23ac

View File

@@ -77,8 +77,7 @@ export function createColumns(onSuccess) {
const snippet = createRawSnippet((getData) => {
const { val } = getData();
// CORRECCIÓN: Usamos !!val para convertir cualquier valor positivo (true, 1) a true.
// Si val es null, undefined, false o 0, será false.
const isActive = !!val;
const text = isActive ? 'Activo' : 'Inactivo';
@@ -95,6 +94,7 @@ export function createColumns(onSuccess) {
},
{
id: "actions",
header: "Acciones",
cell: ({ row }) => renderComponent(DataTableActions, { item: row.original, onSuccess })
}
];