Fixxed error

This commit is contained in:
Dultus 2024-12-08 20:19:07 +01:00
parent a3836ef31e
commit 445f953338

View file

@ -46,8 +46,10 @@ function updateHorseButton() {
const horseData = basicDataResponse.data;
// Pferd beim Backend prüfen
getHorseLoadStateAPIAsync(horseData.id);
setBaseDataHorseAPI(horseData.id, horseData)
getHorseLoadStateAPIAsync(horseData.id)
// Basisdaten an die API senden
setBaseDataHorseAPI(horseData.id, horseData)
.then(() => {
console.log("Base data updated in API for horse ID:", horseData.id);
// Schritt 2: Aktuelle Horse-Daten holen (abhängig vom aktiven Tab)
@ -61,10 +63,8 @@ function updateHorseButton() {
console.log("Current horse data received:", currentDataResponse.data);
});
});
});
});
})
.catch((error) => {
console.error("Error in updateHorseButton:", error);
console.error("Error updating horse data:", error);
});
}
});
}