Modify the variables that are not empty strings
const state = reactive({
birthNumber: '',
phoneNumber: '',
DoctorName: '',
DoctorPhone: '',
})
db.collection(state.user.uid).doc("Personal_Records").update({
birthNumber: state.birthNumber,
phoneNumber: state.phoneNumber,
DoctorName: state.DoctorName,
DoctorPhone: state.DoctorPhone
})
I only want to update the variables that have changed. Even though they are empty strings, Firestore still updates them. Thank you for any assistance.