Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Application may see a JavaScript error due to insufficient Observation data #82

Open
kolkheang opened this issue Aug 18, 2019 · 0 comments

Comments

@kolkheang
Copy link
Member

The sample application can run into a JavaScript error when the response from the server does not have the appropriate Observation data. The application should ensure that data is valid before accessing the data.

The component object can be nil. Currently the find function is accessing this component object without checking.

https://github.com/cerner/smart-on-fhir-tutorial/blob/gh-pages/example-smart-app/src/js/example-smart-app.js#L92-L93

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant