Fixxed error
This commit is contained in:
parent
a3836ef31e
commit
445f953338
1 changed files with 8 additions and 8 deletions
|
|
@ -46,8 +46,10 @@ function updateHorseButton() {
|
||||||
const horseData = basicDataResponse.data;
|
const horseData = basicDataResponse.data;
|
||||||
|
|
||||||
// Pferd beim Backend prüfen
|
// Pferd beim Backend prüfen
|
||||||
getHorseLoadStateAPIAsync(horseData.id);
|
getHorseLoadStateAPIAsync(horseData.id)
|
||||||
setBaseDataHorseAPI(horseData.id, horseData)
|
|
||||||
|
// Basisdaten an die API senden
|
||||||
|
setBaseDataHorseAPI(horseData.id, horseData)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log("Base data updated in API for horse ID:", horseData.id);
|
console.log("Base data updated in API for horse ID:", horseData.id);
|
||||||
// Schritt 2: Aktuelle Horse-Daten holen (abhängig vom aktiven Tab)
|
// 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);
|
console.log("Current horse data received:", currentDataResponse.data);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
});
|
console.error("Error updating horse data:", error);
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
console.error("Error in updateHorseButton:", error);
|
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue