docs: add comment

This commit is contained in:
Jesse Mazzella 2023-06-01 11:31:18 -07:00
parent 8d8dd34853
commit 12b7c0e805
2 changed files with 5 additions and 1 deletions

View File

@ -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();
}

View File

@ -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];