object get in onWorkerMessage call should use identifier

This commit is contained in:
David Tsay 2022-03-14 11:21:04 -07:00
parent c4f18a4797
commit 282ead581a

View File

@ -137,7 +137,7 @@ class InMemorySearchProvider {
};
modelResults.hits = await Promise.all(event.data.results.map(async (hit) => {
const identifier = this.openmct.objects.parseKeyString(hit.keyString);
const domainObject = await this.openmct.objects.get(identifier.key);
const domainObject = await this.openmct.objects.get(identifier);
return domainObject;
}));