await hostRecipeImage
.then(() => {
hostStepImages
})
.then(() => {
console.log(object)
setRecipe(object)
})
.then(
await fetch("/api/rezept-upload", {
method: "post",
body: JSON.stringify(recipe),
credentials: "include",
})
my fetch method runs immediately before the hostRecipeImage promise gets resolved, any idea why?