Se coloco nombre de la columna de acciones
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user