You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
# Fix bugs saving drafts and storing photos
## JIRA Ticket
None
## Description
The app was not updating saved drafts as it should. On IOS and Android,
it would not save a photo after it was captured.
## Proposed Changes
Very obscure bugs.
- draft saving is triggered by a call in form.tsx that had been placed
after a conditional for inline forms, so wasn't being called for inline
forms
- photo saving was being interrupted by too frequent re-renders of the
RecordForm component that lost data because it happened between GetPhoto
returning and the data being stored.
## How to Test
Check Android and Apple builds, see how you are able to take photos,
notice how the draft is updated if you quit out of the form without
saving.
## Additional Information
OMG! OMG! OMG!
## Checklist
- [x] I have confirmed all commits have been signed.
- [x] I have added JSDoc style comments to any new functions or classes.
- [x] Relevant documentation such as READMEs, guides, and class comments
are updated.
0 commit comments