mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
Fixes failing test.
This commit is contained in:
parent
5d8252bb07
commit
a6825f530c
@ -73,7 +73,9 @@ export default class TelemetryCriterion extends EventEmitter {
|
||||
*/
|
||||
unsubscribe() {
|
||||
//unsubscribe from telemetry source
|
||||
this.subscription();
|
||||
if (typeof this.subscription === 'function') {
|
||||
this.subscription();
|
||||
}
|
||||
delete this.subscription;
|
||||
this.emit('criterion::Remove', this.telemetryObjectIdAsString);
|
||||
delete this.telemetryObjectIdAsString;
|
||||
|
Loading…
Reference in New Issue
Block a user