exclude default condition when requesting telemetry

This commit is contained in:
David Tsay 2020-03-20 10:12:02 -07:00
parent ecf3e19f16
commit b38a9ad4ce

View File

@ -240,7 +240,9 @@ export default class ConditionManager extends EventEmitter {
return this.load().then(() => {
const ladConditionResults = this.conditionClassCollection
.filter(condition => !condition.isDefault)
.filter((condition, index) => {
return !this.conditionSetDomainObject.configuration.conditionCollection[index].isDefault
})
.map(condition => condition.requestLADConditionResult());
return Promise.all(ladConditionResults)