We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
There is an issue to _isValidMeasurement function. It will never return false because return is inside forEach loop.
Viewers/platform/core/src/services/MeasurementService/MeasurementService.js
Lines 651 to 660 in 686fe7d
This function is used inside addRawMeasurement function
Lines 363 to 368 in 686fe7d
The warn is never prompt in console and function continue and add measurement:
_isValidMeasurement(measurementData) { const _isValidKey = key => MEASUREMENT_SCHEMA_KEYS.includes(key) return Object.keys(measurementData).every(key => { if (!_isValidKey(key)) { log.warn(`Invalid measurement key: ${key}`); return false; } return true; }); }
The text was updated successfully, but these errors were encountered:
jbocce
Successfully merging a pull request may close this issue.
Hello,
Bug Report
Describe the Bug
There is an issue to _isValidMeasurement function.
It will never return false because return is inside forEach loop.
Viewers/platform/core/src/services/MeasurementService/MeasurementService.js
Lines 651 to 660 in 686fe7d
This function is used inside addRawMeasurement function
Viewers/platform/core/src/services/MeasurementService/MeasurementService.js
Lines 363 to 368 in 686fe7d
The warn is never prompt in console and function continue and add measurement:
One possible solution:
The text was updated successfully, but these errors were encountered: