mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
Fixes this for initilize function
This commit is contained in:
parent
415b967c0b
commit
d6320f5da1
@ -27,10 +27,9 @@ export default class TelemetryCriterion extends EventEmitter {
|
||||
/**
|
||||
* Subscribes/Unsubscribes to telemetry and emits the result
|
||||
* of operations performed on the telemetry data returned and a given input value.
|
||||
* @param {
|
||||
* id: uuid, operation: enum, input: Array, metaDataKey: string, key: {domainObject.identifier}
|
||||
* }
|
||||
* @constructor
|
||||
* @param telemetryDomainObjectDefinition {id: uuid, operation: enum, input: Array, metaDataKey: string, key: {domainObject.identifier} }
|
||||
* @param openmct
|
||||
*/
|
||||
constructor(telemetryDomainObjectDefinition, openmct) {
|
||||
super();
|
||||
@ -42,7 +41,7 @@ export default class TelemetryCriterion extends EventEmitter {
|
||||
this.subscription = null;
|
||||
this.telemetryMetadata = null;
|
||||
this.telemetryObjectIdAsString = null;
|
||||
this.objectAPI.get(this.objectAPI.makeKeyString(telemetryDomainObjectDefinition.key)).then(this.initialize);
|
||||
this.objectAPI.get(this.objectAPI.makeKeyString(telemetryDomainObjectDefinition.key)).then((obj) => this.initialize(obj));
|
||||
}
|
||||
|
||||
initialize(obj) {
|
||||
|
Loading…
Reference in New Issue
Block a user