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>([])