From 45952cbdc82657ed5aafa768693f5de5dc8dd32a Mon Sep 17 00:00:00 2001 From: "Roberto.silva" Date: Wed, 21 Jan 2026 12:28:16 -0600 Subject: [PATCH] Se agrega id --- src/routes/planes/$planId/_detalle/datos.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/planes/$planId/_detalle/datos.tsx b/src/routes/planes/$planId/_detalle/datos.tsx index 2e6efca..9e6584f 100644 --- a/src/routes/planes/$planId/_detalle/datos.tsx +++ b/src/routes/planes/$planId/_detalle/datos.tsx @@ -18,7 +18,8 @@ const formatLabel = (key: string) => { } function DatosGeneralesPage() { - const { data } = usePlan('0e0aea4d-b8b4-4e75-8279-6224c3ac769f') + const { planId } = Route.useParams() + const { data } = usePlan(planId) const navigate = useNavigate() // Inicializamos campos como un arreglo vacĂ­o const [campos, setCampos] = useState>([])