From 8d8dd34853b7aafdabae71eab7d54b043b985c8a Mon Sep 17 00:00:00 2001 From: "Mazzella, Jesse D. (ARC-TI)[KBR Wyle Services, LLC]" Date: Thu, 1 Jun 2023 09:37:02 -0700 Subject: [PATCH] fix: remove redundant `MAP` annotation type --- src/api/annotation/AnnotationAPI.js | 4 +--- src/ui/layout/search/AnnotationSearchResult.vue | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/api/annotation/AnnotationAPI.js b/src/api/annotation/AnnotationAPI.js index 2c5c42f1eb..bb46a805e0 100644 --- a/src/api/annotation/AnnotationAPI.js +++ b/src/api/annotation/AnnotationAPI.js @@ -32,15 +32,13 @@ import _ from 'lodash'; * @property {String} PIXEL_SPATIAL The pixel-spatial annotation type * @property {String} TEMPORAL The temporal annotation type * @property {String} PLOT_SPATIAL The plot-spatial annotation type - * @property {String} MAP The map annotation type */ const ANNOTATION_TYPES = Object.freeze({ NOTEBOOK: 'NOTEBOOK', GEOSPATIAL: 'GEOSPATIAL', PIXEL_SPATIAL: 'PIXEL_SPATIAL', TEMPORAL: 'TEMPORAL', - PLOT_SPATIAL: 'PLOT_SPATIAL', - MAP: 'MAP' + PLOT_SPATIAL: 'PLOT_SPATIAL' }); const ANNOTATION_TYPE = 'annotation'; diff --git a/src/ui/layout/search/AnnotationSearchResult.vue b/src/ui/layout/search/AnnotationSearchResult.vue index 1807b3e250..7ad0fd79e4 100644 --- a/src/ui/layout/search/AnnotationSearchResult.vue +++ b/src/ui/layout/search/AnnotationSearchResult.vue @@ -98,7 +98,7 @@ export default { } return 'Could not find any matching Notebook entries'; - } else if (this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.MAP) { + } 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];