Skip to content

Commit

Permalink
Update PR
Browse files Browse the repository at this point in the history
  • Loading branch information
reagan-meant committed Nov 4, 2024
1 parent 4be7651 commit 5da9df0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/esm-patient-outcomes-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
},
"dependencies": {
"@carbon/react": "^1.12.0",
"@openmrs/esm-patient-common-lib": "*",
"@openmrs/esm-patient-common-lib": "8.x",
"lodash-es": "^4.17.21"
},
"peerDependencies": {
"@openmrs/esm-framework": "5.x",
"@openmrs/esm-patient-common-lib": "*",
"@openmrs/esm-patient-common-lib": "8.x",
"dayjs": "1.x",
"react": "18.x",
"react-i18next": "11.x",
Expand All @@ -52,7 +52,7 @@
"swr": "2.x"
},
"devDependencies": {
"@openmrs/esm-patient-common-lib": "*",
"@openmrs/esm-patient-common-lib": "8.x",
"webpack": "^5.88.2"
},
"author": "Christopher Miiro"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const SendSmsForm: React.FC<SendSmsFormProps> = ({
} = methods;

useEffect(() => {
patient?.telecom[0]?.value ? methods.setValue('to', patient?.telecom[0]?.value) : null;
if (patient?.telecom && patient.telecom[0]?.value) {
methods.setValue('to', patient.telecom[0].value);
}
promptBeforeClosing(() => isDirty);
}, [isDirty, promptBeforeClosing, patient]);

Expand Down
21 changes: 18 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1998,12 +1998,12 @@ __metadata:
resolution: "@i-tech-uw/esm-patient-outcomes-app@workspace:packages/esm-patient-outcomes-app"
dependencies:
"@carbon/react": "npm:^1.12.0"
"@openmrs/esm-patient-common-lib": "npm:*"
"@openmrs/esm-patient-common-lib": "npm:8.x"
lodash-es: "npm:^4.17.21"
webpack: "npm:^5.88.2"
peerDependencies:
"@openmrs/esm-framework": 5.x
"@openmrs/esm-patient-common-lib": "*"
"@openmrs/esm-patient-common-lib": 8.x
dayjs: 1.x
react: 18.x
react-i18next: 11.x
Expand Down Expand Up @@ -3259,7 +3259,22 @@ __metadata:
languageName: node
linkType: hard

"@openmrs/esm-patient-common-lib@npm:*, @openmrs/esm-patient-common-lib@npm:next":
"@openmrs/esm-patient-common-lib@npm:8.x":
version: 8.2.0
resolution: "@openmrs/esm-patient-common-lib@npm:8.2.0"
dependencies:
"@carbon/react": "npm:^1.12.0"
lodash-es: "npm:^4.17.21"
uuid: "npm:^8.3.2"
peerDependencies:
"@openmrs/esm-framework": 5.x
react: 18.x
single-spa: 6.x
checksum: 10/438f956cd758535a06750ff1c74fad5531f18a68a1131845e27c41d070f58742ae90db8623915e8a0fa719c4195050b8bf3b1702f15c1fe0792658c7b6243c51
languageName: node
linkType: hard

"@openmrs/esm-patient-common-lib@npm:next":
version: 8.1.1-pre.5230
resolution: "@openmrs/esm-patient-common-lib@npm:8.1.1-pre.5230"
dependencies:
Expand Down

0 comments on commit 5da9df0

Please sign in to comment.