You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-23 15:42:28 +03:00
Do reflect in the same map
This commit is contained in:
@@ -60,8 +60,8 @@ export async function getCompletions(query: string, selection: SelectionRange, f
|
|||||||
PROVIDERS.map((provider) => {
|
PROVIDERS.map((provider) => {
|
||||||
// Convert to bluebird promise so that we can do a timeout
|
// Convert to bluebird promise so that we can do a timeout
|
||||||
const p = Promise.resolve(provider.getCompletions(query, selection, force));
|
const p = Promise.resolve(provider.getCompletions(query, selection, force));
|
||||||
return p.timeout(PROVIDER_COMPLETION_TIMEOUT);
|
return p.timeout(PROVIDER_COMPLETION_TIMEOUT).reflect();
|
||||||
}).map((p) => p.reflect()),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
return completionsList.filter(
|
return completionsList.filter(
|
||||||
|
|||||||
Reference in New Issue
Block a user