mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
Return awaited promise
This commit is contained in:
parent
1d5ddc545e
commit
5092ba8763
@ -364,7 +364,7 @@ export default class ConditionManager extends EventEmitter {
|
|||||||
let nextLegOptions = { ...options };
|
let nextLegOptions = { ...options };
|
||||||
delete nextLegOptions.onPartialResponse;
|
delete nextLegOptions.onPartialResponse;
|
||||||
|
|
||||||
const results = Promise.all(
|
const results = await Promise.all(
|
||||||
this.conditions.map((condition) => condition.requestLADConditionResult(nextLegOptions))
|
this.conditions.map((condition) => condition.requestLADConditionResult(nextLegOptions))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user