mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
fix: unlisten to annotation event beforeDestroy (#6690)
* fix: unlisten to annotation event beforeDestroy * refactor: `npm run lint:fix` --------- Co-authored-by: Scott Bell <scott@traclabs.com>
This commit is contained in:
parent
356c90ca45
commit
fea68381a7
@ -128,6 +128,7 @@ export default {
|
||||
await this.updateSelection(this.openmct.selection.get());
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.openmct.annotation.off('targetDomainObjectAnnotated', this.loadAnnotationForTargetObject);
|
||||
this.openmct.selection.off('change', this.updateSelection);
|
||||
const unobserveEntryFunctions = Object.values(this.unobserveEntries);
|
||||
unobserveEntryFunctions.forEach((unobserveEntry) => {
|
||||
|
Loading…
Reference in New Issue
Block a user