mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 12:58:53 +03:00
Do reflect
in the same map
This commit is contained in:
parent
c9f3a12693
commit
f78a49b3a9
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ export async function getCompletions(query: string, selection: SelectionRange, f
|
|||
PROVIDERS.map((provider) => {
|
||||
// Convert to bluebird promise so that we can do a timeout
|
||||
const p = Promise.resolve(provider.getCompletions(query, selection, force));
|
||||
return p.timeout(PROVIDER_COMPLETION_TIMEOUT);
|
||||
}).map((p) => p.reflect()),
|
||||
return p.timeout(PROVIDER_COMPLETION_TIMEOUT).reflect();
|
||||
}),
|
||||
);
|
||||
|
||||
return completionsList.filter(
|
||||
|
|
Loading…
Reference in a new issue