From ff82d0c3641b47d490081940e07e2d123c4039a1 Mon Sep 17 00:00:00 2001 From: "Roberto.silva" Date: Thu, 23 Oct 2025 15:29:41 -0600 Subject: [PATCH] Fix button archivos --- src/components/planes/CreatePlanDialog.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/planes/CreatePlanDialog.tsx b/src/components/planes/CreatePlanDialog.tsx index 66e5fdc..18787f6 100644 --- a/src/components/planes/CreatePlanDialog.tsx +++ b/src/components/planes/CreatePlanDialog.tsx @@ -85,6 +85,8 @@ export function CreatePlanDialog({ open, onOpenChange }: { open: boolean; onOpen const lockFacultad = role === "secretario_academico" || role === "jefe_carrera" const lockCarrera = role === "jefe_carrera" + + useEffect(() => { async function fetchDbFiles() { try { @@ -102,7 +104,7 @@ export function CreatePlanDialog({ open, onOpenChange }: { open: boolean; onOpen setDbFiles((data || []).map((file: any) => ({ id: file.documentos_id, titulo: file.titulo_archivo, - s3_file_path: file.s3_file_path, + s3_file_path: file.titulo_archivo, fecha_subida: file.fecha_subida, tags: file.tags || [], }))); @@ -260,6 +262,8 @@ export function CreatePlanDialog({ open, onOpenChange }: { open: boolean; onOpen {dbFiles.map((file, index) => { const ext = fileExt(file.titulo); const selected = isSelected(file.s3_file_path); + console.log(file); + return (