From 4bbdac759f614d6d40414e3081f701ca77f4cd26 Mon Sep 17 00:00:00 2001 From: Deep Tailor Date: Fri, 20 Nov 2020 15:27:57 -0800 Subject: [PATCH] check if domainobejct before listening for status (#3539) --- src/ui/inspector/ObjectName.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/inspector/ObjectName.vue b/src/ui/inspector/ObjectName.vue index bec19270b7..ace020a2ed 100644 --- a/src/ui/inspector/ObjectName.vue +++ b/src/ui/inspector/ObjectName.vue @@ -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() {