mirror of
https://github.com/nasa/openmct.git
synced 2025-03-11 15:04:10 +00:00
fix: handle MAP
annotations in search results
This commit is contained in:
parent
3f2c63c9d7
commit
b51654efbb
@ -98,6 +98,10 @@ export default {
|
||||
}
|
||||
|
||||
return 'Could not find any matching Notebook entries';
|
||||
} else if (this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.MAP) {
|
||||
const targetID = Object.keys(this.result.targets)[0];
|
||||
const { layerName, name } = this.result.targets[targetID];
|
||||
return layerName ? `${layerName} - ${name}` : name;
|
||||
} else {
|
||||
return this.result.targetModels[0].name;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user