mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
check if domainobejct before listening for status (#3539)
This commit is contained in:
parent
13fe7509de
commit
4bbdac759f
@ -97,9 +97,12 @@ export default {
|
||||
} else {
|
||||
this.multiSelect = false;
|
||||
this.domainObject = selection[0][0].context.item;
|
||||
this.keyString = this.openmct.objects.makeKeyString(this.domainObject.identifier);
|
||||
this.status = this.openmct.status.get(this.keyString);
|
||||
this.statusUnsubscribe = this.openmct.status.observe(this.keyString, this.updateStatus);
|
||||
|
||||
if (this.domainObject) {
|
||||
this.keyString = this.openmct.objects.makeKeyString(this.domainObject.identifier);
|
||||
this.status = this.openmct.status.get(this.keyString);
|
||||
this.statusUnsubscribe = this.openmct.status.observe(this.keyString, this.updateStatus);
|
||||
}
|
||||
}
|
||||
},
|
||||
resetDomainObject() {
|
||||
|
Loading…
Reference in New Issue
Block a user