Syncing empty name records #3237
Labels
Bug: production
Bug was found or believed to be in a live release
Docs: not needed
Effort: small
Small effort story/task, estimated 0-2 days
Priority: release blocker
Projects
Describe the bug
This line here: https://github.com/openmsupply/mobile/blob/a9ad1d9c2b48cc305804d4caefbd90146fccbb2a/src/sync/outgoingSyncUtils.js#L78
Means sync will try to sync an empty record and breaks sync
To reproduce
Not sure! This should never occur, but if it does.. 🤷
Expected behaviour
N/A
Proposed Solution
Filter the sync out queue of name types which aren't patients
Version and device info
Additional context
N/A
The text was updated successfully, but these errors were encountered: