mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 15:02:23 +00:00
[Telemetry] Use the 'source' metadata field to retrieve telemetry metadata, if available. Fixes #1543.
This commit is contained in:
parent
00f3b6ce5c
commit
26e13a6cd0
@ -212,8 +212,10 @@ define(
|
||||
var telemetryAPI = this.openmct.telemetry;
|
||||
|
||||
var metadata = telemetryAPI.getMetadata(domainObject);
|
||||
var defaultDomain = (metadata.valuesForHints(['domain'])[0] || {}).key;
|
||||
var defaultRange = (metadata.valuesForHints(['range'])[0] || {}).key;
|
||||
var domainMetadata = metadata.valuesForHints(['x'])[0] || {};
|
||||
var rangeMetadata = metadata.valuesForHints(['y'])[0] || {};
|
||||
var defaultDomain = domainMetadata.source || domainMetadata.key;
|
||||
var defaultRange = rangeMetadata.source || rangeMetadata.key;
|
||||
|
||||
var isLegacyProvider = telemetryAPI.findRequestProvider(domainObject) ===
|
||||
telemetryAPI.legacyProvider;
|
||||
|
Loading…
Reference in New Issue
Block a user