fix: navigate before selection for geospatial results

This commit is contained in:
Mazzella, Jesse D. (ARC-TI)[KBR Wyle Services, LLC] 2023-06-02 12:17:20 -07:00
parent ed7e85c8a0
commit 11295a8042

View File

@ -140,7 +140,8 @@ export default {
// if we're not on the correct page, navigate to the object,
// then wait for the selection event to fire before issuing a new selection
if (
this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.PLOT_SPATIAL
this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.PLOT_SPATIAL ||
this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.GEOSPATIAL
) {
this.openmct.selection.on('change', this.clickedPlotAnnotation);
}