Fix di errori

This commit is contained in:
Leocraft1
2025-10-01 17:12:35 +02:00
parent 65d0c3dd52
commit c94b34bd1b

View File

@@ -27,7 +27,7 @@ fetch(urlRoutes)
lineaSelect.appendChild(option);
});
})
.catch(error => console.error('Errore nel caricamento dei dati:', error));
.catch(error => {console.error('Errore nel caricamento dei dati:', error)});
fetch(urlModels)
.then(response => {
if (!response.ok) throw new Error("Errore nel caricamento dei dati.");
@@ -49,7 +49,7 @@ fetch(urlModels)
}
});
})
.catch(error => console.error('Errore nel caricamento dei dati:', error));
.catch(error => {console.error('Errore nel caricamento dei dati:', error)});
function modelsDictionary(model){