Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Vigliotta <jamie.j.vigliotta@nasa.gov>2021-05-27 22:46:25 +0300
committerDavid Tsay <david.e.tsay@nasa.gov>2021-05-27 23:00:50 +0300
commit11aac902f0f9f7a86c32dda5add84cb5615eb10d (patch)
treece40449c3f3b534aa9514c95db4b89015d04a1ae
parentf27b298e4e1905fb779b3c0bb2c027a6d405da82 (diff)
fix search issuevista-4.7.1-rc2
-rw-r--r--src/ui/layout/mct-tree.vue10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/layout/mct-tree.vue b/src/ui/layout/mct-tree.vue
index 08fe41fb1..c9e5071c3 100644
--- a/src/ui/layout/mct-tree.vue
+++ b/src/ui/layout/mct-tree.vue
@@ -551,9 +551,11 @@ export default {
});
},
aggregateSearchResults(results, abortSignal) {
+ let resultPromises = [];
+
for (const result of results) {
if (!abortSignal.aborted) {
- return this.openmct.objects.getOriginalPath(result.identifier).then((objectPath) => {
+ resultPromises.push(this.openmct.objects.getOriginalPath(result.identifier).then((objectPath) => {
// removing the item itself, as the path we pass to buildTreeItem is a parent path
objectPath.shift();
@@ -564,11 +566,11 @@ export default {
}
this.searchResultItems.push(this.buildTreeItem(result, objectPath));
- });
- } else {
- return Promise.resolve();
+ }));
}
}
+
+ return resultPromises;
},
updateVisibleItems() {
this.scrollEndEvent();