mirror of
https://github.com/nasa/openmct.git
synced 2025-01-01 19:06:40 +00:00
docs: add comment
This commit is contained in:
parent
8d8dd34853
commit
12b7c0e805
@ -192,6 +192,8 @@ export default {
|
||||
},
|
||||
async loadAnnotationForTargetObject(target) {
|
||||
const targetID = this.openmct.objects.makeKeyString(target.identifier);
|
||||
// If the user changes targets while annotations are loading,
|
||||
// abort the previous request.
|
||||
if (this.abortController !== null) {
|
||||
this.abortController.abort();
|
||||
}
|
||||
|
@ -98,7 +98,9 @@ export default {
|
||||
}
|
||||
|
||||
return 'Could not find any matching Notebook entries';
|
||||
} else if (this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.GEOSPATIAL) {
|
||||
} else if (
|
||||
this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.GEOSPATIAL
|
||||
) {
|
||||
const targetID = Object.keys(this.result.targets)[0];
|
||||
const { layerName, name } = this.result.targets[targetID];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user