mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 06:08:11 +00:00
Prevent Metadata Time System Error for Missing Objects (#7565)
https://github.com/nasa/openmct/pull/7565 Modified Stacked Plots to not show Missing Objects. Added a check in Telemetry Collections for missing objects before displaying telemetry metadata time system error.
This commit is contained in:
@ -249,7 +249,7 @@ export default class ObjectAPI {
|
||||
.get(identifier, abortSignal)
|
||||
.then((domainObject) => {
|
||||
delete this.cache[keystring];
|
||||
if (!domainObject && abortSignal.aborted) {
|
||||
if (!domainObject && abortSignal?.aborted) {
|
||||
// we've aborted the request
|
||||
return;
|
||||
}
|
||||
|
@ -442,8 +442,12 @@ export default class TelemetryCollection extends EventEmitter {
|
||||
} else {
|
||||
this.timeKey = undefined;
|
||||
|
||||
this._warn(TIMESYSTEM_KEY_WARNING);
|
||||
this.openmct.notifications.alert(TIMESYSTEM_KEY_NOTIFICATION);
|
||||
// missing objects will never have a domain, if one happens to get through
|
||||
// to this point this warning/notification does not apply
|
||||
if (!this.openmct.objects.isMissing(this.domainObject)) {
|
||||
this._warn(TIMESYSTEM_KEY_WARNING);
|
||||
this.openmct.notifications.alert(TIMESYSTEM_KEY_NOTIFICATION);
|
||||
}
|
||||
}
|
||||
|
||||
let valueFormatter = this.openmct.telemetry.getValueFormatter(metadataValue);
|
||||
|
Reference in New Issue
Block a user