Skip to content

Commit

Permalink
#1277 - convert draft encounter obs before saving
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Jan 11, 2024
1 parent 71eb8f9 commit 771ec08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/openchs-android/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"lodash": "4.17.21",
"moment": "2.29.4",
"native-base": "3.4.9",
"openchs-models": "1.31.14",
"openchs-models": "1.31.16",
"prop-types": "15.8.1",
"react": "18.2.0",
"react-native": "0.72.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DraftEncounterService extends BaseService {
const cleanIndividualFromDB = this.findByUUID(encounter.individual.uuid, Individual.schema.name);
draftEncounter.individual = cleanIndividualFromDB;

ObservationsHolder.convertObsForSave(encounter.observations);
ObservationsHolder.convertObsForSave(draftEncounter.observations);

return this.db.write(() => {
return db.create(DraftEncounter.schema.name, draftEncounter, true);
Expand Down

0 comments on commit 771ec08

Please sign in to comment.