merge carlos
This commit is contained in:
@@ -23,11 +23,12 @@ export default function Page() {
|
||||
.then((data) => setProgramas(data))
|
||||
.catch((error) => console.error("Error al cargar programas:", error));
|
||||
}, []);
|
||||
|
||||
const handleGuardar = async () => {
|
||||
if (!programaSeleccionado) return;
|
||||
|
||||
await fetch(
|
||||
`http://localhost:5000/programa/${programaSeleccionado}`,
|
||||
`${envConfig.apiUrl}/programa/${programaSeleccionado}`,
|
||||
{
|
||||
method: "PATCH",
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user