Commit c5fac93 1 parent 8fc051c commit c5fac93 Copy full SHA for c5fac93
File tree 1 file changed +3
-4
lines changed
src/components/RequestBox
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,13 @@ export default class RequestBox extends Component {
171
171
} ;
172
172
173
173
getPatients = ( ) => {
174
- console . log ( this . props . access_token . access_token ) ;
174
+ console . log ( "getPatients::access_token:" , this . props . access_token ? .access_token ) ;
175
175
this . setState ( { openPatient : true } ) ;
176
176
const params = { serverUrl : this . props . ehrUrl } ;
177
- console . log ( this . props . access_token . access_token ) ;
178
- if ( this . props . access_token . access_token ) {
177
+ if ( this . props . access_token ?. access_token ) {
179
178
params [ "tokenResponse" ] = { access_token : this . props . access_token . access_token }
180
179
}
181
- console . log ( params ) ;
180
+ console . log ( "getPatients::params" , params ) ;
182
181
const client = FHIR . client (
183
182
params
184
183
) ;
You can’t perform that action at this time.
0 commit comments