Skip to content

Commit

Permalink
#1400 | Show Abnormal UUID in Observations Display for SubjectFormEle…
Browse files Browse the repository at this point in the history
…ment when subject not found
  • Loading branch information
himeshr committed May 15, 2024
1 parent 8ee085f commit 9ba8a73
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions packages/openchs-android/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/openchs-android/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"lodash": "4.17.21",
"moment": "2.29.4",
"native-base": "3.4.9",
"openchs-models": "1.31.65",
"openchs-models": "1.31.71",
"prop-types": "15.8.1",
"react": "18.2.0",
"react-native": "0.72.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/openchs-android/src/views/common/Observations.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ class Observations extends AbstractComponent {
}

renderSubject(subject) {
if(!subject.entityObject) {
return this.renderObservationText(true, subject.displayValue);
}
return <TouchableOpacity key={subject.entityObject.uuid} style={this.styles.observationSubject} onPress={() =>
CHSNavigator.navigateToProgramEnrolmentDashboardView(this, subject.entityObject.uuid, null, true, null, null, 1)}>
{this.renderChip(subject.displayValue)}
Expand Down

0 comments on commit 9ba8a73

Please sign in to comment.