react-version #1

Merged
memartel_loc merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
Showing only changes of commit 3d15b740f0 - Show all commits

View File

@ -31,10 +31,11 @@ const Inventaire = () => {
})
const newMorceau = await response.json();
console.log(newMorceau);
if (response.ok)
if (response.ok) {
setMorceaux([...morceaux, { ...newMorceau }]);
console.log("Ajout de l'item avec succès: \r\n" + newMorceau);
}
else
console.log("Erreur de creation " + morceau);
};