mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
[Telemetry] Use the 'source' metadata field to retrieve telemetry metadata, if available. Fixes #1543.
This commit is contained in:
parent
fd3312734c
commit
11677b97ab
@ -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