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.
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
.