mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 09:08:43 +00:00
Merge branch 'conditionals-refactor' into dave/provide-conditions-telemetry
This commit is contained in:
@ -79,6 +79,8 @@ export default class TelemetryCriterion extends EventEmitter {
|
|||||||
params.push(data[this.metadata]);
|
params.push(data[this.metadata]);
|
||||||
if (this.input instanceof Array && this.input.length) {
|
if (this.input instanceof Array && this.input.length) {
|
||||||
params.push(this.input[0]);
|
params.push(this.input[0]);
|
||||||
|
} else {
|
||||||
|
params.push(this.input);
|
||||||
}
|
}
|
||||||
if (typeof comparator === 'function') {
|
if (typeof comparator === 'function') {
|
||||||
result = comparator(params);
|
result = comparator(params);
|
||||||
|
Reference in New Issue
Block a user