Skip to content

Commit

Permalink
Null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bstewartlg committed Jun 27, 2024
1 parent 8fc051c commit c5fac93
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/RequestBox/RequestBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,13 @@ export default class RequestBox extends Component {
};

getPatients = () => {
console.log(this.props.access_token.access_token);
console.log("getPatients::access_token:", this.props.access_token?.access_token);
this.setState({ openPatient: true });
const params = {serverUrl: this.props.ehrUrl};
console.log(this.props.access_token.access_token);
if (this.props.access_token.access_token) {
if (this.props.access_token?.access_token) {
params["tokenResponse"] = {access_token: this.props.access_token.access_token}
}
console.log(params);
console.log("getPatients::params", params);
const client = FHIR.client(
params
);
Expand Down

0 comments on commit c5fac93

Please sign in to comment.