manaschubby / MediLink-Pro

ElectronJS and MongoDB-based patient data management system. Store, search, and analyze patient photos and data efficiently. Streamline medical care and research. Digitize patient data, enhance accessibility, optimize healthcare workflows.
MIT License
14 stars 10 forks source link

Error on adding new Diagnosis #27

Closed manaschubby closed 1 year ago

manaschubby commented 1 year ago

After adding a new diagnosis on the patient page the app crashes and doesn't load the patient. We have to reload the page using CMD+R or CTRL+R and the error goes.

The error is most likely with the setPatient inside the usePatient hook where we set the new patient data. It can be resolved if we just change the diagnosis array of the already loaded patient.

manaschubby commented 1 year ago

Bug is generated by Pull request #28