check this image for better understading of question
this function only updates first index
function handleBooking(){
const groundref = doc(db,'Owner', props.id)
updateDoc(groundref,{
slots: {Sat: [{available: book , status: status}]}
} ).then(response => {
alert("updated")
}).catch(error =>{
console.log(error.message)
})
}