mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 12:58:53 +03:00
Fix big with rejecting promises upon error
This commit is contained in:
parent
26941e994f
commit
6add06db44
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ async function batchedGetPublicGroups(matrixClient) {
|
|||
} catch (err) {
|
||||
// Propagate the same error to all usersInFlight
|
||||
usersInFlight.forEach((userId) => {
|
||||
usersPending[userId].prom.reject(err);
|
||||
usersPending[userId].reject(err);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue