amida-tech / DRE

Amida Data Reconciliation Engine (Server and Demo UI)
Other
38 stars 17 forks source link

Measurements chart breaks when there are vitals but no height data #784

Closed jsachs closed 9 years ago

jsachs commented 9 years ago
TypeError: Cannot read property 'unit' of undefined
    at dashPrep (record.js:201)
    at record.js:281
    at dataservice.retrieveMasterRecord (dataservice.js:128)
    at record.js:276
    at dataservice.js:304
    at parseEntries (dataservice.js:231)
    at dataservice.js:297
    at dataservice.js:134
    at angular.js:9954
    at processQueue (angular.js:14437)

It happens in this check, $scope.dashMetrics.height.unit === "cm", which is super strange because in the line above we explicitly check that $scope.dashMetrics.height !== null.

jsachs commented 9 years ago

Closed by 192898df7382d387dff435500fb173498876fde9