From 532b8c23ace12c84dd6e622174bea270f0e6d460 Mon Sep 17 00:00:00 2001 From: Kevin_Ramirez Date: Tue, 6 Jan 2026 12:08:38 -0600 Subject: [PATCH] Se coloco nombre de la columna de acciones --- .../lib/components/dashboard/clients_and_providers/columns.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/dashboard/clients_and_providers/columns.ts b/frontend/src/lib/components/dashboard/clients_and_providers/columns.ts index abc3af01..a09246ab 100644 --- a/frontend/src/lib/components/dashboard/clients_and_providers/columns.ts +++ b/frontend/src/lib/components/dashboard/clients_and_providers/columns.ts @@ -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 }) } ];