From 76db9d674bc4fafaaffbfc8757366e7fbbcd6426 Mon Sep 17 00:00:00 2001 From: "Roberto.silva" Date: Fri, 9 Jan 2026 11:09:45 -0600 Subject: [PATCH] Se agrega peticion de plan --- src/routes/planes/$planId/_detalle/datos.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/routes/planes/$planId/_detalle/datos.tsx b/src/routes/planes/$planId/_detalle/datos.tsx index 25b525a..d10d268 100644 --- a/src/routes/planes/$planId/_detalle/datos.tsx +++ b/src/routes/planes/$planId/_detalle/datos.tsx @@ -18,6 +18,12 @@ export const Route = createFileRoute('/planes/$planId/_detalle/datos')({ }) function DatosGeneralesPage() { + const {data, isFetching} = usePlan('0e0aea4d-b8b4-4e75-8279-6224c3ac769f'); + if(!isFetching && !data) { + return
No se encontrĂ³ el plan de estudios.
+ } + console.log(data); + // 1. Definimos los DATOS iniciales (Lo que antes venĂ­a por props) const [campos, setCampos] = useState([ { id: '1', label: 'Objetivo General', value: 'Formar profesionales...', requerido: true, tipo: 'texto' },