const toggleDone = async (appointment) => {
appointment.isDone = !appointment.isDone;
await appointment.saveChanges();
};
This simple function does nothing more than toggling the isDone property.
Sadly, when running this, it fails to take effect...
Am I doing something wrong, or is this a legitimate issue?
Does this work for you guys?