kids-first / kf-ui-fhir-data-dashboard

💡📊 Prototype FHIR data dashboard - what's in my FHIR server?
Apache License 2.0
7 stars 2 forks source link

See error with new $snapshot with HAPI #68

Closed abgeorge7 closed 4 years ago

abgeorge7 commented 4 years ago

Error after clicking on a resource to view details (for example, Patient) using HAPI:

TypeError: Cannot read property 'count' of undefined
Function.mapStateToProps [as mapToProps]
src/components/ReduxResourceDetails.js:19
  16 |   ? state.resources.allResources[resourceId]
  17 |   : {};
  18 | return {
> 19 |   total: resource.count ? resource.count : 0,
     | ^  20 |   resourceId,
  21 |   resourceFetched: hasResources,
  22 |   baseUrl: state.app.selectedServer.url,
znatty22 commented 4 years ago

@abgeorge7 with which server do you see this error, because I don't think I've deployed the $snapshot fix version yet..(probably time to get a Jenkins pipeline in place for automated deployments 😬)

abgeorge7 commented 4 years ago

@znatty22 Oh.... does that mean that HAPI hasn't deployed the fix? Sorry I keep forgetting the architecture haha

znatty22 commented 4 years ago

@abgeorge7 Interesting 🤔 I completely forgot this was an issue with HAPI too.. Do you want to submit a ticket to Smile CDR to ask about this?

abgeorge7 commented 4 years ago

@znatty22 this is actually a bug on my side :( working on it.