mirror of
https://github.com/nasa/openmct.git
synced 2025-04-11 13:20:18 +00:00
[Telemetry API] wrap limits function return in promise if needed (#4044)
This commit is contained in:
parent
7d3baee7b5
commit
240f58b2d0
@ -173,10 +173,11 @@ define([
|
||||
const limitEvaluator = oldObject.getCapability("limit");
|
||||
|
||||
return {
|
||||
limits: function () {
|
||||
return limitEvaluator.limits();
|
||||
limits: () => {
|
||||
return limitEvaluator.limits.then !== undefined
|
||||
? limitEvaluator.limits()
|
||||
: Promise.resolve(limitEvaluator.limits());
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user