Fix button archivos
This commit is contained in:
@@ -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 (
|
||||
<div
|
||||
key={file.id}
|
||||
|
||||
Reference in New Issue
Block a user